Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Issue 178263004: rAc - Only show countries we're able to fill in. (Closed)

Created:
6 years, 9 months ago by Evan Stade
Modified:
6 years, 9 months ago
Reviewers:
Ilya Sherman, Dan Beam
CC:
chromium-reviews, dbeam+watch-options_chromium.org, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, aruslan
Visibility:
Public.

Description

rAc - Only show countries we're able to fill in. If there is a country field that's a plain text input, we can fill anything into it, so show all countries. Likewise, if there's no country field, show all countries. If there is a limited set of countries in a <select>, only show those in the dialog. Note that "Use billing for shipping" doesn't respect the shipping country set. It seems highly unlikely that an address would be acceptable for billing but not shipping. BUG=346440 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256343

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : . #

Total comments: 38

Patch Set 4 : nits #

Patch Set 5 : 500s begone #

Total comments: 6

Patch Set 6 : country codes only #

Total comments: 7

Patch Set 7 : ^H #

Total comments: 2

Patch Set 8 : add FormStructure unit test #

Total comments: 2

Patch Set 9 : fix test #

Patch Set 10 : merge #

Patch Set 11 : vtable crappola #

Patch Set 12 : remove debug line #

Patch Set 13 : fix win compile #

Patch Set 14 : fix android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -61 lines) Patch
M chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +13 lines, -34 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +49 lines, -9 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +78 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_models.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/country_combobox_model.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/country_combobox_model.cc View 1 2 3 4 5 6 2 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/ui/autofill/country_combobox_model_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/form_structure.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure.cc View 1 2 3 4 5 6 7 2 chunks +30 lines, -0 lines 0 comments Download
M components/autofill/core/browser/form_structure_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +40 lines, -0 lines 0 comments Download
M components/autofill/core/common/form_data.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
Evan Stade
6 years, 9 months ago (2014-03-01 02:49:04 UTC) #1
Dan Beam
can haz test in form_structure_unittest.cc also plz? https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode1503 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:1503: } nit: ...
6 years, 9 months ago (2014-03-01 03:38:09 UTC) #2
Evan Stade
https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc#newcode3276 chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc:3276: controller()->Show(); On 2014/03/01 03:38:10, Dan Beam wrote: > ^ ...
6 years, 9 months ago (2014-03-03 18:36:59 UTC) #3
Dan Beam
https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc#newcode3276 chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc:3276: controller()->Show(); On 2014/03/03 18:37:00, Evan Stade wrote: > On ...
6 years, 9 months ago (2014-03-03 22:19:59 UTC) #4
Ilya Sherman
https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode3747 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:3747: // Fall back to the first non-suggestion key. I ...
6 years, 9 months ago (2014-03-03 23:55:53 UTC) #5
Evan Stade
https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode1503 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:1503: } On 2014/03/01 03:38:10, Dan Beam wrote: > nit: ...
6 years, 9 months ago (2014-03-04 00:11:29 UTC) #6
Dan Beam
https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/country_combobox_model.cc File chrome/browser/ui/autofill/country_combobox_model.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/country_combobox_model.cc#newcode34 chrome/browser/ui/autofill/country_combobox_model.cc:34: On 2014/03/04 00:11:30, Evan Stade wrote: > On 2014/03/01 ...
6 years, 9 months ago (2014-03-04 00:19:49 UTC) #7
Ilya Sherman
https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode3747 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:3747: // Fall back to the first non-suggestion key. On ...
6 years, 9 months ago (2014-03-04 00:53:57 UTC) #8
Evan Stade
https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/country_combobox_model_unittest.cc File chrome/browser/ui/autofill/country_combobox_model_unittest.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/30001/chrome/browser/ui/autofill/country_combobox_model_unittest.cc#newcode80 chrome/browser/ui/autofill/country_combobox_model_unittest.cc:80: } On 2014/03/04 00:53:57, Ilya Sherman wrote: > On ...
6 years, 9 months ago (2014-03-04 01:05:14 UTC) #9
Dan Beam
some nits while you make this country-code-only https://codereview.chromium.org/178263004/diff/60001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h File chrome/browser/ui/autofill/autofill_dialog_controller_impl.h (right): https://codereview.chromium.org/178263004/diff/60001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h#newcode330 chrome/browser/ui/autofill/autofill_dialog_controller_impl.h:330: CountryComboboxModel* CountryComboboxModelForSection(DialogSection ...
6 years, 9 months ago (2014-03-05 00:40:02 UTC) #10
Evan Stade
https://codereview.chromium.org/178263004/diff/60001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h File chrome/browser/ui/autofill/autofill_dialog_controller_impl.h (right): https://codereview.chromium.org/178263004/diff/60001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h#newcode330 chrome/browser/ui/autofill/autofill_dialog_controller_impl.h:330: CountryComboboxModel* CountryComboboxModelForSection(DialogSection section); On 2014/03/05 00:40:03, Dan Beam wrote: ...
6 years, 9 months ago (2014-03-05 03:28:23 UTC) #11
Evan Stade
(updated the code to only check for country codes, not country names)
6 years, 9 months ago (2014-03-05 03:28:42 UTC) #12
Evan Stade
+aruslan FYI
6 years, 9 months ago (2014-03-05 04:11:53 UTC) #13
Dan Beam
lgtm https://chromiumcodereview.appspot.com/178263004/diff/80001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h File chrome/browser/ui/autofill/autofill_dialog_controller_impl.h (right): https://chromiumcodereview.appspot.com/178263004/diff/80001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h#newcode434 chrome/browser/ui/autofill/autofill_dialog_controller_impl.h:434: bool CanAcceptCountry(DialogSection section, const std::string& country_code); this looks ...
6 years, 9 months ago (2014-03-05 04:19:15 UTC) #14
Evan Stade
https://chromiumcodereview.appspot.com/178263004/diff/80001/chrome/browser/ui/autofill/country_combobox_model.cc File chrome/browser/ui/autofill/country_combobox_model.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/80001/chrome/browser/ui/autofill/country_combobox_model.cc#newcode34 chrome/browser/ui/autofill/country_combobox_model.cc:34: On 2014/03/05 04:19:16, Dan Beam wrote: > ^H Done. ...
6 years, 9 months ago (2014-03-05 04:21:04 UTC) #15
Ilya Sherman
https://codereview.chromium.org/178263004/diff/90012/components/autofill/core/browser/form_structure.cc File components/autofill/core/browser/form_structure.cc (right): https://codereview.chromium.org/178263004/diff/90012/components/autofill/core/browser/form_structure.cc#newcode1141 components/autofill/core/browser/form_structure.cc:1141: } Since you prefer not to add tests to ...
6 years, 9 months ago (2014-03-05 06:09:36 UTC) #16
Dan Beam
slgtm https://chromiumcodereview.appspot.com/178263004/diff/80001/chrome/browser/ui/autofill/country_combobox_model.cc File chrome/browser/ui/autofill/country_combobox_model.cc (right): https://chromiumcodereview.appspot.com/178263004/diff/80001/chrome/browser/ui/autofill/country_combobox_model.cc#newcode41 chrome/browser/ui/autofill/country_combobox_model.cc:41: return true; On 2014/03/05 04:21:05, Evan Stade wrote: ...
6 years, 9 months ago (2014-03-05 19:52:11 UTC) #17
Evan Stade
https://codereview.chromium.org/178263004/diff/80001/chrome/browser/ui/autofill/country_combobox_model.cc File chrome/browser/ui/autofill/country_combobox_model.cc (right): https://codereview.chromium.org/178263004/diff/80001/chrome/browser/ui/autofill/country_combobox_model.cc#newcode41 chrome/browser/ui/autofill/country_combobox_model.cc:41: return true; On 2014/03/05 19:52:12, Dan Beam wrote: > ...
6 years, 9 months ago (2014-03-05 22:38:31 UTC) #18
Ilya Sherman
LGTM w/ comment addressed: https://codereview.chromium.org/178263004/diff/110001/components/autofill/core/browser/form_structure_unittest.cc File components/autofill/core/browser/form_structure_unittest.cc (right): https://codereview.chromium.org/178263004/diff/110001/components/autofill/core/browser/form_structure_unittest.cc#newcode2400 components/autofill/core/browser/form_structure_unittest.cc:2400: EXPECT_EQ(0U, form_structure2.PossibleValues(ADDRESS_BILLING_COUNTRY).size()); You probably need ...
6 years, 9 months ago (2014-03-05 23:30:56 UTC) #19
Evan Stade
https://codereview.chromium.org/178263004/diff/110001/components/autofill/core/browser/form_structure_unittest.cc File components/autofill/core/browser/form_structure_unittest.cc (right): https://codereview.chromium.org/178263004/diff/110001/components/autofill/core/browser/form_structure_unittest.cc#newcode2400 components/autofill/core/browser/form_structure_unittest.cc:2400: EXPECT_EQ(0U, form_structure2.PossibleValues(ADDRESS_BILLING_COUNTRY).size()); On 2014/03/05 23:30:57, Ilya Sherman wrote: > ...
6 years, 9 months ago (2014-03-06 01:13:43 UTC) #20
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 9 months ago (2014-03-06 01:13:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/130001
6 years, 9 months ago (2014-03-06 01:14:42 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 01:14:46 UTC) #23
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-03-06 01:14:47 UTC) #24
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 9 months ago (2014-03-06 04:06:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/150001
6 years, 9 months ago (2014-03-06 04:08:52 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 04:46:15 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 9 months ago (2014-03-06 04:46:15 UTC) #28
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 9 months ago (2014-03-06 05:32:20 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/170001
6 years, 9 months ago (2014-03-06 05:34:26 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 06:33:37 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=276164
6 years, 9 months ago (2014-03-06 06:33:38 UTC) #32
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 9 months ago (2014-03-06 17:34:27 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/190001
6 years, 9 months ago (2014-03-06 17:35:00 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 19:39:47 UTC) #35
commit-bot: I haz the power
Retried try job too often on android_clang_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_clang_dbg&number=121285
6 years, 9 months ago (2014-03-06 19:39:47 UTC) #36
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 9 months ago (2014-03-06 21:07:58 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/210001
6 years, 9 months ago (2014-03-06 21:17:53 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/210001
6 years, 9 months ago (2014-03-06 22:04:58 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 23:43:47 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel Retried try job too often on android_dbg for ...
6 years, 9 months ago (2014-03-06 23:43:47 UTC) #41
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 9 months ago (2014-03-10 20:36:59 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/230001
6 years, 9 months ago (2014-03-10 20:44:07 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/230001
6 years, 9 months ago (2014-03-10 21:50:30 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/230001
6 years, 9 months ago (2014-03-10 22:35:36 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/230001
6 years, 9 months ago (2014-03-10 23:48:48 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-11 09:44:23 UTC) #47
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=279454
6 years, 9 months ago (2014-03-11 09:44:24 UTC) #48
Dan Beam
The CQ bit was checked by dbeam@chromium.org
6 years, 9 months ago (2014-03-11 18:15:50 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/178263004/230001
6 years, 9 months ago (2014-03-11 18:26:52 UTC) #50
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 22:43:49 UTC) #51
Message was sent while issue was closed.
Change committed as 256343

Powered by Google App Engine
This is Rietveld 408576698