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

Issue 6484022: Autofill i18n: Set postal code and state field labels based on the selected country. (Closed)

Created:
9 years, 10 months ago by Ilya Sherman
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Ilya Sherman, James Hawkins, dhollowa, arv (Not doing code reviews), pam+watch_chromium.org, Paweł Hajdan Jr., jshin+watch_chromium.org
Visibility:
Public.

Description

Autofill i18n: Set postal code and state field labels based on the selected country. * Changes the country field to a <select> field. * Restricts the possible values for the "country" field to a set of known values * Moves the country field to the top of the Autofill dialog * Changes the field labels according to the selected country BUG=56599, 56602, 56604 TEST=unit_tests --gtest_filter=AddressTest (and a few others; see cl) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76117

Patch Set 1 #

Patch Set 2 : Various style fixups #

Patch Set 3 : Reuploading #

Total comments: 10

Patch Set 4 : I see you, ICU #

Total comments: 47

Patch Set 5 : Still needs tests #

Total comments: 32

Patch Set 6 : Tests! #

Total comments: 1

Patch Set 7 : More synonyms, fewer colons #

Patch Set 8 : Merged with ToT, maybe #

Patch Set 9 : Properly merged with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1200 lines, -480 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 2 chunks +75 lines, -90 lines 0 comments Download
M chrome/browser/autofill/address.h View 1 2 3 4 5 4 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/autofill/address.cc View 1 2 3 4 5 9 chunks +24 lines, -8 lines 0 comments Download
A chrome/browser/autofill/address_unittest.cc View 1 2 3 4 5 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_address_model_mac_unittest.mm View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
A chrome/browser/autofill/autofill_country.h View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/autofill/autofill_country.cc View 1 2 3 4 5 6 1 chunk +460 lines, -0 lines 0 comments Download
A chrome/browser/autofill/autofill_country_unittest.cc View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_profile.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_profile.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_profile_unittest.cc View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/autofill/select_control_handler.cc View 1 2 3 4 5 6 7 6 chunks +23 lines, -303 lines 0 comments Download
M chrome/browser/resources/options/autofill_edit_address_overlay.html View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/resources/options/autofill_edit_address_overlay.js View 1 2 3 4 5 6 7 8 6 chunks +82 lines, -7 lines 0 comments Download
M chrome/browser/resources/shared/js/local_strings.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 2 3 4 5 6 7 8 11 chunks +73 lines, -11 lines 0 comments Download
M chrome/browser/webdata/web_database_unittest.cc View 1 2 3 4 5 6 7 8 21 chunks +74 lines, -33 lines 0 comments Download
M chrome/browser/webui/options/autofill_options_handler.cc View 1 2 3 4 5 6 7 8 7 chunks +33 lines, -10 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/web_database/version_33.sql View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
M ui/base/l10n/l10n_util_collator.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Ilya Sherman
This still needs a good bit of work, but I'd appreciate any feedback you might ...
9 years, 10 months ago (2011-02-11 11:02:53 UTC) #1
James Hawkins
The diff viewer is saying "Old chunk mismatch" and I can't see the diff that ...
9 years, 10 months ago (2011-02-11 18:54:18 UTC) #2
Ilya Sherman
Re-uploaded
9 years, 10 months ago (2011-02-11 19:59:37 UTC) #3
James Hawkins
I'm concerned that the list of countries is being added to generated_resources.grd. Please ask on ...
9 years, 10 months ago (2011-02-11 21:40:50 UTC) #4
Ilya Sherman
On 2011/02/11 21:40:50, James Hawkins wrote: > I'm concerned that the list of countries is ...
9 years, 10 months ago (2011-02-11 21:58:50 UTC) #5
arv (Not doing code reviews)
http://codereview.chromium.org/6484022/diff/7005/chrome/browser/autofill/autofill_country.h File chrome/browser/autofill/autofill_country.h (right): http://codereview.chromium.org/6484022/diff/7005/chrome/browser/autofill/autofill_country.h#newcode264 chrome/browser/autofill/autofill_country.h:264: AutoFillCountry CountryCodeToCountry(const std::string& country_code); Please add description of all ...
9 years, 10 months ago (2011-02-11 22:55:37 UTC) #6
Ilya Sherman
Transitioned to use ICU country names. http://codereview.chromium.org/6484022/diff/7005/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): http://codereview.chromium.org/6484022/diff/7005/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode123 chrome/browser/resources/options/autofill_edit_address_overlay.js:123: var country_code = ...
9 years, 10 months ago (2011-02-12 07:33:02 UTC) #7
James Hawkins
http://codereview.chromium.org/6484022/diff/13001/chrome/browser/autofill/autofill_country.cc File chrome/browser/autofill/autofill_country.cc (right): http://codereview.chromium.org/6484022/diff/13001/chrome/browser/autofill/autofill_country.cc#newcode12 chrome/browser/autofill/autofill_country.cc:12: #include "base/utf_string_conversions.h" Is this header used? http://codereview.chromium.org/6484022/diff/13001/chrome/browser/autofill/autofill_country.cc#newcode16 chrome/browser/autofill/autofill_country.cc:16: #include ...
9 years, 10 months ago (2011-02-12 20:32:45 UTC) #8
arv (Not doing code reviews)
http://codereview.chromium.org/6484022/diff/7005/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): http://codereview.chromium.org/6484022/diff/7005/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode162 chrome/browser/resources/options/autofill_edit_address_overlay.js:162: self.countryChanged_(); On 2011/02/12 07:33:02, Ilya Sherman wrote: > On ...
9 years, 10 months ago (2011-02-14 18:36:41 UTC) #9
Ilya Sherman
Still needs tests, but otherwise hopefully feature-complete. http://codereview.chromium.org/6484022/diff/13001/chrome/browser/autofill/autofill_country.cc File chrome/browser/autofill/autofill_country.cc (right): http://codereview.chromium.org/6484022/diff/13001/chrome/browser/autofill/autofill_country.cc#newcode12 chrome/browser/autofill/autofill_country.cc:12: #include "base/utf_string_conversions.h" ...
9 years, 10 months ago (2011-02-16 10:27:18 UTC) #10
James Hawkins
http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/address.cc File chrome/browser/autofill/address.cc (right): http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/address.cc#newcode9 chrome/browser/autofill/address.cc:9: #include "base/utf_string_conversions.h" Where is it used?
9 years, 10 months ago (2011-02-16 19:49:01 UTC) #11
dhollowa
http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/autofill_country.cc File chrome/browser/autofill/autofill_country.cc (right): http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/autofill_country.cc#newcode396 chrome/browser/autofill/autofill_country.cc:396: // TODO(isherman): Add other synonyms We should do this ...
9 years, 10 months ago (2011-02-17 00:55:28 UTC) #12
Ilya Sherman
http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/address.cc File chrome/browser/autofill/address.cc (right): http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/address.cc#newcode9 chrome/browser/autofill/address.cc:9: #include "base/utf_string_conversions.h" On 2011/02/16 19:49:01, James Hawkins wrote: > ...
9 years, 10 months ago (2011-02-17 23:09:11 UTC) #13
dhollowa
http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/autofill_country.cc File chrome/browser/autofill/autofill_country.cc (right): http://codereview.chromium.org/6484022/diff/20001/chrome/browser/autofill/autofill_country.cc#newcode396 chrome/browser/autofill/autofill_country.cc:396: // TODO(isherman): Add other synonyms Not really. You could ...
9 years, 10 months ago (2011-02-17 23:36:47 UTC) #14
Ilya Sherman
Added support for 3-letter country codes, and a few oddball country name synonyms. Removed Mac-only ...
9 years, 10 months ago (2011-02-18 00:57:09 UTC) #15
dhollowa
LGTM. Thanks!
9 years, 10 months ago (2011-02-18 01:18:16 UTC) #16
arv (Not doing code reviews)
FYI http://codereview.chromium.org/6484022/diff/20001/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): http://codereview.chromium.org/6484022/diff/20001/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode42 chrome/browser/resources/options/autofill_edit_address_overlay.html:42: <label id="state-label" for="state"></label> You should probably fix the ...
9 years, 10 months ago (2011-02-21 03:09:27 UTC) #17
Ilya Sherman
http://codereview.chromium.org/6484022/diff/20001/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): http://codereview.chromium.org/6484022/diff/20001/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode42 chrome/browser/resources/options/autofill_edit_address_overlay.html:42: <label id="state-label" for="state"></label> On 2011/02/21 03:09:27, arv wrote: > ...
9 years, 10 months ago (2011-02-23 01:17:15 UTC) #18
Ilya Sherman
James: lg?
9 years, 10 months ago (2011-02-25 10:01:41 UTC) #19
James Hawkins
9 years, 10 months ago (2011-02-25 18:18:54 UTC) #20
LGTM

Powered by Google App Engine
This is Rietveld 408576698