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

Issue 243013004: i18n address editing in chrome://settings/autofillEditAddress. (Closed)

Created:
6 years, 8 months ago by please use gerrit instead
Modified:
6 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, benquan, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

i18n address editing in chrome://settings/autofillEditAddress. BUG=333387 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268095

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Templates. #

Total comments: 2

Patch Set 3 : Manual templates. #

Total comments: 21

Patch Set 4 : Address comments. #

Total comments: 16

Patch Set 5 : Addressed comments. #

Total comments: 3

Patch Set 6 : Use instanceof in tests. #

Patch Set 7 : Fix phone validation. #

Total comments: 4

Patch Set 8 : Address nits. #

Patch Set 9 : Fix windows build. #

Total comments: 21
Unified diffs Side-by-side diffs Delta from patch set Stats (+545 lines, -338 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +2 lines, -29 lines 0 comments Download
M chrome/browser/resources/options/autofill_edit_address_overlay.html View 1 2 3 1 chunk +4 lines, -44 lines 0 comments Download
M chrome/browser/resources/options/autofill_edit_address_overlay.js View 1 2 3 4 5 6 7 9 chunks +220 lines, -106 lines 17 comments Download
M chrome/browser/resources/options/autofill_edit_overlay.css View 1 2 3 2 chunks +13 lines, -34 lines 0 comments Download
M chrome/browser/resources/options/autofill_options_list.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_browsertest.js View 1 2 3 4 5 6 7 3 chunks +117 lines, -1 line 2 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.cc View 1 2 3 4 5 6 7 8 9 chunks +181 lines, -123 lines 2 comments Download

Messages

Total messages: 38 (0 generated)
please use gerrit instead
Evan: PTAL Patch Set 1. Still todo: add some browser tests.
6 years, 8 months ago (2014-04-22 00:21:15 UTC) #1
Evan Stade
https://codereview.chromium.org/243013004/diff/160001/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): https://codereview.chromium.org/243013004/diff/160001/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode235 chrome/browser/resources/options/autofill_edit_address_overlay.js:235: item = 'admin-area'; ditto https://codereview.chromium.org/243013004/diff/160001/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode299 chrome/browser/resources/options/autofill_edit_address_overlay.js:299: clearInputFields_: function() { ...
6 years, 8 months ago (2014-04-22 00:51:57 UTC) #2
please use gerrit instead
Evan: PTAL Patch Set 2. https://codereview.chromium.org/243013004/diff/160001/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): https://codereview.chromium.org/243013004/diff/160001/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode235 chrome/browser/resources/options/autofill_edit_address_overlay.js:235: item = 'admin-area'; On ...
6 years, 8 months ago (2014-04-24 20:10:58 UTC) #3
Evan Stade
https://codereview.chromium.org/243013004/diff/270001/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/270001/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode7 chrome/browser/resources/options/autofill_edit_address_overlay.html:7: <div jsdisplay="field == 'fullName'" jsselect="$this"> jst is not what ...
6 years, 8 months ago (2014-04-24 21:05:50 UTC) #4
please use gerrit instead
Evan: PTAL Patch Set 3. https://codereview.chromium.org/243013004/diff/270001/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/270001/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode7 chrome/browser/resources/options/autofill_edit_address_overlay.html:7: <div jsdisplay="field == 'fullName'" ...
6 years, 8 months ago (2014-04-25 18:54:25 UTC) #5
Evan Stade
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> I think we should standardize the number ...
6 years, 8 months ago (2014-04-25 20:02:18 UTC) #6
please use gerrit instead
Evan: PTAL Patch Set 4. Since I removed the three-part name input (first, middle, last), ...
6 years, 7 months ago (2014-04-28 15:49:43 UTC) #7
Evan Stade
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/28 15:49:44, Rouslan Solomakhin wrote: > ...
6 years, 7 months ago (2014-04-28 23:23:15 UTC) #8
Ilya Sherman
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/28 23:23:16, Evan Stade wrote: > ...
6 years, 7 months ago (2014-04-28 23:43:43 UTC) #9
Evan Stade
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/28 23:43:44, Ilya Sherman wrote: > ...
6 years, 7 months ago (2014-04-28 23:56:37 UTC) #10
Ilya Sherman
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/28 23:56:37, Evan Stade wrote: > ...
6 years, 7 months ago (2014-04-29 00:08:29 UTC) #11
Evan Stade
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/29 00:08:29, Ilya Sherman wrote: > ...
6 years, 7 months ago (2014-04-29 00:24:41 UTC) #12
Ilya Sherman
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/29 00:24:41, Evan Stade wrote: > ...
6 years, 7 months ago (2014-04-29 00:37:28 UTC) #13
please use gerrit instead
I agree with Ilya. We should keep the first, middle, last name in chrome://settings/autofill to ...
6 years, 7 months ago (2014-04-29 16:44:59 UTC) #14
Evan Stade
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/29 00:37:29, Ilya Sherman wrote: > ...
6 years, 7 months ago (2014-04-29 18:19:02 UTC) #15
please use gerrit instead
Ok, let's optimize for the case of users rarely visiting chrome://settings/autofill and keep the UI ...
6 years, 7 months ago (2014-04-29 18:29:52 UTC) #16
Ilya Sherman
Suggestion: How about we unblock Rouslan's work by keeping the status quo for the name ...
6 years, 7 months ago (2014-04-29 18:59:20 UTC) #17
Evan Stade
yea, we shouldn't block Rouslan on this. But I am not convinced separate name fields ...
6 years, 7 months ago (2014-04-29 19:14:31 UTC) #18
Ilya Sherman
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/29 19:14:31, Evan Stade wrote: > ...
6 years, 7 months ago (2014-04-29 19:25:03 UTC) #19
Ilya Sherman
Coincidentally, somebody bumped [ http://crbug.com/132332 ] today. From that bug, it sounds like our heuristics ...
6 years, 7 months ago (2014-04-29 20:24:12 UTC) #20
please use gerrit instead
Evan: PTAL Patch Set 5. Ilya: I filed http://crbug.com/368536. https://codereview.chromium.org/243013004/diff/420001/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): https://codereview.chromium.org/243013004/diff/420001/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode8 chrome/browser/resources/options/autofill_edit_address_overlay.js:8: ...
6 years, 7 months ago (2014-04-30 02:06:14 UTC) #21
Evan Stade
https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html File chrome/browser/resources/options/autofill_edit_address_overlay.html (right): https://codereview.chromium.org/243013004/diff/320009/chrome/browser/resources/options/autofill_edit_address_overlay.html#newcode45 chrome/browser/resources/options/autofill_edit_address_overlay.html:45: <span i18n-content="autofillFirstNameLabel"></span> On 2014/04/29 19:25:03, Ilya Sherman wrote: > ...
6 years, 7 months ago (2014-04-30 05:25:21 UTC) #22
please use gerrit instead
Evan: PTAL Patch Set 6. https://codereview.chromium.org/243013004/diff/420001/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): https://codereview.chromium.org/243013004/diff/420001/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode381 chrome/browser/resources/options/autofill_edit_address_overlay.js:381: if (input.tagName == 'LIST') ...
6 years, 7 months ago (2014-04-30 17:23:55 UTC) #23
please use gerrit instead
Evan: ping.
6 years, 7 months ago (2014-05-01 23:29:27 UTC) #24
Evan Stade
lgtm https://codereview.chromium.org/243013004/diff/520001/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): https://codereview.chromium.org/243013004/diff/520001/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode385 chrome/browser/resources/options/autofill_edit_address_overlay.js:385: // "input instanceof cr.ui.List" works only after the ...
6 years, 7 months ago (2014-05-02 19:21:49 UTC) #25
please use gerrit instead
Sending to cq. https://codereview.chromium.org/243013004/diff/520001/chrome/browser/resources/options/autofill_edit_address_overlay.js File chrome/browser/resources/options/autofill_edit_address_overlay.js (right): https://codereview.chromium.org/243013004/diff/520001/chrome/browser/resources/options/autofill_edit_address_overlay.js#newcode385 chrome/browser/resources/options/autofill_edit_address_overlay.js:385: // "input instanceof cr.ui.List" works only ...
6 years, 7 months ago (2014-05-02 22:05:16 UTC) #26
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org
6 years, 7 months ago (2014-05-02 22:05:23 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/243013004/540001
6 years, 7 months ago (2014-05-02 22:07:07 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-02 22:59:32 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-02 22:59:32 UTC) #30
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org
6 years, 7 months ago (2014-05-02 23:41:16 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/243013004/540001
6 years, 7 months ago (2014-05-02 23:41:42 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-03 00:11:56 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium
6 years, 7 months ago (2014-05-03 00:11:57 UTC) #34
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org
6 years, 7 months ago (2014-05-04 01:47:29 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/243013004/560001
6 years, 7 months ago (2014-05-04 01:47:42 UTC) #36
commit-bot: I haz the power
Change committed as 268095
6 years, 7 months ago (2014-05-04 05:14:05 UTC) #37
Dan Beam
6 years, 7 months ago (2014-05-06 03:51:08 UTC) #38
Message was sent while issue was closed.
for a rainy day?

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
File chrome/browser/resources/options/autofill_edit_address_overlay.js (right):

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:13: var
languageCode;
^ i'm confused, where is this used?  looks like dead code...  (protip:
|this.languageCode| is not the same thing)

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:111: * @param
{element} list The list to update.
!Element

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:145: * @return
{element} The country selector.
Element

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:148:
getCountrySelector_: function() {
nit: getCountrySwitcher as calling something a "selector" in a file that also
has "querySelector" is confusing

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:163: * @return
{NodeList} The text input elements.
!NodeList in both cases (here and above)

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:173: * @return
{object} The mapping from field names to values.
!Object

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:178:
address['country'] = this.getCountrySelector_().value;
why not:

  var address = {country: this.getCountrySelector_().value};

?

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:183:
lists[i].dataModel.slice(0, lists[i].dataModel.length - 1);
you can usually do .slice(0) if you want the whole thing...

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:196: * @param
{object} address The object with values to use.
!Object

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:200:
this.getCountrySelector_().value = address['country'] || '';
it's preferable to use .prop rather than ['prop'] in webui code

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:235:
address[argCounter++] = this.languageCode;
confused, why not:

  var address = [
    this.guid,
    inputFields.fullName || [],
    ...
  ];

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:250:
fields[i].oninput = function(event) { self.inputFieldChanged_(); };
fields[i].oninput = this.inputFieldChanged_.bind(this);

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:259: var
disabled = true;
var disabled = !this.getCountrySelector_().value;

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:340: var
address = this.getInputFields_();
why is this named address?

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:350: *
|components|.
@param {<some_type>} components

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:357: }
content.innerHTML = '';

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/resource...
chrome/browser/resources/options/autofill_edit_address_overlay.js:360: var
customInputElements = {'fullName': 'list', 'addrLines': 'textarea'};
opt nit: don't need ' around keys in this case

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/options/autofill_options_browsertest.js (right):

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/ui/webui...
chrome/browser/ui/webui/options/autofill_options_browsertest.js:18: * @return
{int} The size of the list.
{number}

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/ui/webui...
chrome/browser/ui/webui/options/autofill_options_browsertest.js:96: testDone();
why are you using a async test for these cases?

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/ui/webui...
File chrome/browser/ui/webui/options/autofill_options_handler.cc (right):

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/ui/webui...
chrome/browser/ui/webui/options/autofill_options_handler.cc:76: static const
char kDefaultCountryCode[] = "US";
why not just inline?

https://codereview.chromium.org/243013004/diff/560001/chrome/browser/ui/webui...
chrome/browser/ui/webui/options/autofill_options_handler.cc:166: std::string
defaultCountryLanguageCode;
cpp_vars_like_this

Powered by Google App Engine
This is Rietveld 408576698