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

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed)

Created:
7 years, 1 month ago by Dan Beam
Modified:
6 years, 11 months ago
CC:
chromium-reviews, benquan, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Ask libaddressinput for address components to use in requestAutocomplete(). This change will cause slightly different translations and address layout to show when the --enable-autofill-address-i18n flag is passed. Next up: - pull translations from chrome rather than libaddressinput - show country combobox and rebuild inputs on switch Based on https://codereview.chromium.org/25620002 by Rouslan Solomakhin <rouslan@chromium.org>;. BUG=317837 TBR=aruslan Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243189

Patch Set 1 : . #

Total comments: 6

Patch Set 2 : . #

Total comments: 18

Patch Set 3 : let's try this again, android #

Total comments: 30

Patch Set 4 : . #

Total comments: 17

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : tests #

Total comments: 9

Patch Set 7 : base:: #

Total comments: 5

Patch Set 8 : split #

Total comments: 6

Patch Set 9 : estade@ review #

Total comments: 4

Patch Set 10 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -85 lines) Patch
M chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/ui/autofill/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_common.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_common.cc View 1 2 3 4 5 6 7 8 3 chunks +78 lines, -28 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 3 4 5 6 7 3 chunks +60 lines, -31 lines 0 comments Download
A chrome/browser/ui/autofill/autofill_dialog_i18n_input.h View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc View 1 2 3 4 5 6 7 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc View 1 2 3 4 5 6 7 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_types.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_section_container.mm View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_section_container_unittest.mm View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
please use gerrit instead
https://chromiumcodereview.appspot.com/63053003/diff/110001/third_party/libaddressinput/README.chromium File third_party/libaddressinput/README.chromium (right): https://chromiumcodereview.appspot.com/63053003/diff/110001/third_party/libaddressinput/README.chromium#newcode18 third_party/libaddressinput/README.chromium:18: - Added libaddressinput.gyp for chromium-specific gyp structure/locations. I was ...
7 years, 1 month ago (2013-11-18 19:22:29 UTC) #1
Dan Beam
not quite ready for review, but just FYI https://codereview.chromium.org/63053003/diff/110001/third_party/libaddressinput/README.chromium File third_party/libaddressinput/README.chromium (right): https://codereview.chromium.org/63053003/diff/110001/third_party/libaddressinput/README.chromium#newcode18 third_party/libaddressinput/README.chromium:18: - ...
7 years, 1 month ago (2013-11-19 05:15:11 UTC) #2
Dan Beam
https://chromiumcodereview.appspot.com/63053003/diff/590001/chrome/browser/ui/views/autofill/autofill_dialog_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_views.cc (right): https://chromiumcodereview.appspot.com/63053003/diff/590001/chrome/browser/ui/views/autofill/autofill_dialog_views.cc#newcode2043 chrome/browser/ui/views/autofill/autofill_dialog_views.cc:2043: parent->AddChildViewAt(group->manual_input, add_index); ^ there are still paint issues here, ...
7 years, 1 month ago (2013-11-22 00:15:23 UTC) #3
please use gerrit instead
https://chromiumcodereview.appspot.com/63053003/diff/590001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/63053003/diff/590001/chrome/app/generated_resources.grd#newcode10389 chrome/app/generated_resources.grd:10389: + <message name="IDS_AUTOFILL_DIALOG_PLACEHOLDER_ORGANIZATION" desc="The placeholder/label text for organization/company in ...
7 years, 1 month ago (2013-11-22 00:51:23 UTC) #4
Evan Stade
https://codereview.chromium.org/63053003/diff/590001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/63053003/diff/590001/chrome/app/generated_resources.grd#newcode10389 chrome/app/generated_resources.grd:10389: + <message name="IDS_AUTOFILL_DIALOG_PLACEHOLDER_ORGANIZATION" desc="The placeholder/label text for organization/company in ...
7 years ago (2013-11-25 19:52:05 UTC) #5
Evan Stade
https://codereview.chromium.org/63053003/diff/590001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc File chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc (right): https://codereview.chromium.org/63053003/diff/590001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc#newcode80 chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc:80: {ADDRESS_HOME_COUNTRY, ADDRESS_BILLING_COUNTRY}, there should be spaces inside the {} ...
7 years ago (2013-11-25 20:35:45 UTC) #6
Dan Beam
https://codereview.chromium.org/63053003/diff/590001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/63053003/diff/590001/chrome/app/generated_resources.grd#newcode10389 chrome/app/generated_resources.grd:10389: + <message name="IDS_AUTOFILL_DIALOG_PLACEHOLDER_ORGANIZATION" desc="The placeholder/label text for organization/company in ...
7 years ago (2013-11-28 02:52:44 UTC) #7
please use gerrit instead
Dan: Android is not compiling because the DEPS file omits downloading libaddressinput on Android. (I ...
7 years ago (2013-12-02 16:51:00 UTC) #8
please use gerrit instead
See https://code.google.com/p/chromium/codesearch#chromium/src/DEPS&q=deps&sq=package:chromium&type=cs&l=526
7 years ago (2013-12-02 16:51:45 UTC) #9
Evan Stade
https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (left): https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_common.cc#oldcode98 chrome/browser/ui/autofill/autofill_dialog_common.cc:98: // We don't allow the user to change the ...
7 years ago (2013-12-02 17:57:32 UTC) #10
Dan Beam
On 2013/12/02 16:51:45, Rouslan Solomakhin wrote: > See > https://code.google.com/p/chromium/codesearch#chromium/src/DEPS&q=deps&sq=package:chromium&type=cs&l=526 the question was not "why ...
7 years ago (2013-12-02 19:37:00 UTC) #11
Dan Beam
https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (left): https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_common.cc#oldcode98 chrome/browser/ui/autofill/autofill_dialog_common.cc:98: // We don't allow the user to change the ...
7 years ago (2013-12-02 22:37:53 UTC) #12
Dan Beam
https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc File chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc (right): https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc#newcode77 chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc:77: void IncrementRowIdForComponent( On 2013/12/02 22:37:54, Dan Beam wrote: > ...
7 years ago (2013-12-02 23:10:31 UTC) #13
Evan Stade
https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc File chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc (right): https://codereview.chromium.org/63053003/diff/1000001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc#newcode90 chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc:90: On 2013/12/02 22:37:54, Dan Beam wrote: > On 2013/12/02 ...
7 years ago (2013-12-02 23:30:33 UTC) #14
Dan Beam
https://codereview.chromium.org/63053003/diff/1060001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (right): https://codereview.chromium.org/63053003/diff/1060001/chrome/browser/ui/autofill/autofill_dialog_common.cc#newcode173 chrome/browser/ui/autofill/autofill_dialog_common.cc:173: i18ninput::BuildI18nInputs(i18ninput::ADDRESS_TYPE_SHIPPING, On 2013/12/02 23:30:34, Evan Stade wrote: > this ...
7 years ago (2013-12-03 02:11:18 UTC) #15
Evan Stade
https://codereview.chromium.org/63053003/diff/1060001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc File chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc (right): https://codereview.chromium.org/63053003/diff/1060001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc#newcode88 chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc:88: int row_id = 100; On 2013/12/03 02:11:19, Dan Beam ...
7 years ago (2013-12-03 02:32:47 UTC) #16
Dan Beam
https://codereview.chromium.org/63053003/diff/1060001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc File chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc (right): https://codereview.chromium.org/63053003/diff/1060001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc#newcode88 chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc:88: int row_id = 100; On 2013/12/03 02:32:48, Evan Stade ...
7 years ago (2013-12-03 07:38:06 UTC) #17
Evan Stade
could you upload just the changes that are part of this CL and not include ...
7 years ago (2013-12-05 01:45:30 UTC) #18
Dan Beam
On 2013/12/05 01:45:30, Evan Stade wrote: > could you upload just the changes that are ...
7 years ago (2013-12-05 02:15:56 UTC) #19
Dan Beam
+groby@ for chrome/browser/ui/cocoa +aruslan@ for chrome/browser/ui/android
7 years ago (2013-12-05 02:45:02 UTC) #20
groby-ooo-7-16
https://codereview.chromium.org/63053003/diff/1390001/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm File chrome/browser/ui/cocoa/autofill/autofill_section_container.mm (right): https://codereview.chromium.org/63053003/diff/1390001/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm#newcode106 chrome/browser/ui/cocoa/autofill/autofill_section_container.mm:106: // Create a view with all inputs requested by ...
7 years ago (2013-12-05 02:56:09 UTC) #21
Evan Stade
https://codereview.chromium.org/63053003/diff/1390001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (left): https://codereview.chromium.org/63053003/diff/1390001/chrome/browser/ui/autofill/autofill_dialog_common.cc#oldcode212 chrome/browser/ui/autofill/autofill_dialog_common.cc:212: AutofillCountry country("US", g_browser_process->GetApplicationLocale()); seems like you're breaking the non-i18nized ...
7 years ago (2013-12-05 03:09:16 UTC) #22
Dan Beam
https://codereview.chromium.org/63053003/diff/1390001/chrome/browser/ui/autofill/autofill_dialog_common.cc File chrome/browser/ui/autofill/autofill_dialog_common.cc (left): https://codereview.chromium.org/63053003/diff/1390001/chrome/browser/ui/autofill/autofill_dialog_common.cc#oldcode212 chrome/browser/ui/autofill/autofill_dialog_common.cc:212: AutofillCountry country("US", g_browser_process->GetApplicationLocale()); On 2013/12/05 03:09:18, Evan Stade wrote: ...
7 years ago (2013-12-05 08:55:57 UTC) #23
Dan Beam
ready to review again. i'm all ears as to how to split this up if ...
6 years, 11 months ago (2013-12-31 02:05:38 UTC) #24
Dan Beam
specific responsibilities: groby@: chrome/browser/ui/cocoa/autofill aruslan@: chrome/browser/ui/android/autofill estade@: everything else
6 years, 11 months ago (2014-01-02 19:55:23 UTC) #25
Evan Stade
https://codereview.chromium.org/63053003/diff/2620001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/63053003/diff/2620001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode1121 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:1121: it->initial_value = common::GetInitialValueForType(it->type, country_code); Isn't the purpose of setting ...
6 years, 11 months ago (2014-01-02 22:59:24 UTC) #26
Dan Beam
so i've gone ahead and split this CL up a bit. same reviewers as before ...
6 years, 11 months ago (2014-01-03 22:09:46 UTC) #27
Dan Beam
> screenshots here: http://imgur.com/a/zXgtC whoops, to visually describe what you're looking at with awesome ASCII ...
6 years, 11 months ago (2014-01-03 22:31:51 UTC) #28
Dan Beam
> estade@: all comments from pre-split patchset addressed locally (will upload > soon). ... and ...
6 years, 11 months ago (2014-01-04 00:04:14 UTC) #29
Evan Stade
lgtm with nits https://codereview.chromium.org/63053003/diff/2960001/chrome/browser/ui/autofill/autofill_dialog_common.h File chrome/browser/ui/autofill/autofill_dialog_common.h (right): https://codereview.chromium.org/63053003/diff/2960001/chrome/browser/ui/autofill/autofill_dialog_common.h#newcode46 chrome/browser/ui/autofill/autofill_dialog_common.h:46: DetailInputs* inputs, outparams come after inparams ...
6 years, 11 months ago (2014-01-04 00:18:04 UTC) #30
Dan Beam
https://chromiumcodereview.appspot.com/63053003/diff/2960001/chrome/browser/ui/autofill/autofill_dialog_common.h File chrome/browser/ui/autofill/autofill_dialog_common.h (right): https://chromiumcodereview.appspot.com/63053003/diff/2960001/chrome/browser/ui/autofill/autofill_dialog_common.h#newcode46 chrome/browser/ui/autofill/autofill_dialog_common.h:46: DetailInputs* inputs, On 2014/01/04 00:18:04, Evan Stade wrote: > ...
6 years, 11 months ago (2014-01-04 00:50:47 UTC) #31
groby-ooo-7-16
For withFixup, see comment. LGTM % comments. https://chromiumcodereview.appspot.com/63053003/diff/3110001/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm File chrome/browser/ui/cocoa/autofill/autofill_section_container.mm (right): https://chromiumcodereview.appspot.com/63053003/diff/3110001/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm#newcode624 chrome/browser/ui/cocoa/autofill/autofill_section_container.mm:624: base::SysUTF16ToNSString(input.placeholder_text)]; Unless ...
6 years, 11 months ago (2014-01-04 01:15:32 UTC) #32
Dan Beam
https://chromiumcodereview.appspot.com/63053003/diff/3110001/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm File chrome/browser/ui/cocoa/autofill/autofill_section_container.mm (right): https://chromiumcodereview.appspot.com/63053003/diff/3110001/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm#newcode624 chrome/browser/ui/cocoa/autofill/autofill_section_container.mm:624: base::SysUTF16ToNSString(input.placeholder_text)]; On 2014/01/04 01:15:33, groby wrote: > Unless you ...
6 years, 11 months ago (2014-01-04 01:39:23 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/63053003/3250001
6 years, 11 months ago (2014-01-06 19:49:26 UTC) #34
commit-bot: I haz the power
6 years, 11 months ago (2014-01-06 22:39:26 UTC) #35
Message was sent while issue was closed.
Change committed as 243189

Powered by Google App Engine
This is Rietveld 408576698