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

Issue 212873003: Store the language code for the address in autofill profile. (Closed)

Created:
6 years, 9 months ago by please use gerrit instead
Modified:
6 years, 8 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Store the language code for the address in autofill profile. After BuildComponents() returns the language code that should be used to format the address, Chrome should store and sync this language code along with the autofill profile. The language code should not be communicated to the autofill server, because it's not the type of data that will be sent to an input field on a webpage. BUG=354955 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263311

Patch Set 1 : #

Total comments: 9

Patch Set 2 : Address comments. #

Total comments: 21

Patch Set 3 : Address comments. #

Total comments: 7

Patch Set 4 : Fix windows build. #

Total comments: 2

Patch Set 5 : Address comments. #

Total comments: 3

Patch Set 6 : Address comments. #

Total comments: 6

Patch Set 7 : Compare only content for merging. #

Total comments: 2

Patch Set 8 : Single line #

Total comments: 8

Patch Set 9 : Fixups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -61 lines) Patch
M chrome/browser/ui/android/autofill/autofill_dialog_controller_android.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_common.h View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_common.cc View 4 chunks +18 lines, -10 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 9 chunks +33 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_i18n_input.h View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_i18n_input_unittest.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/data_model_wrapper.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/data_model_wrapper.cc View 1 2 3 4 5 5 chunks +14 lines, -2 lines 0 comments Download
M components/autofill/core/browser/autofill_profile.h View 1 2 3 4 5 6 3 chunks +21 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_profile.cc View 1 2 3 4 5 6 7 5 chunks +16 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_profile_unittest.cc View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_syncable_service.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc View 1 2 3 4 5 6 5 chunks +17 lines, -4 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc View 1 2 3 4 5 4 chunks +228 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table.cc View 1 2 3 4 5 9 chunks +21 lines, -9 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table_unittest.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A components/test/data/web_database/version_55.sql View 1 chunk +30 lines, -0 lines 0 comments Download
M components/webdata/common/web_database.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/webdata/common/web_database_migration_unittest.cc View 1 2 3 4 2 chunks +64 lines, -1 line 0 comments Download
M sync/protocol/autofill_specifics.proto View 1 chunk +1 line, -0 lines 0 comments Download
M sync/protocol/proto_value_conversions.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
please use gerrit instead
Evan: PTAL autofill. Scott: PTAL web database. Nicolas: PTAL sync.
6 years, 9 months ago (2014-03-27 23:12:08 UTC) #1
please use gerrit instead
Ilya: As Evan is OOO for a week, do you have any comments on this ...
6 years, 9 months ago (2014-03-28 18:18:31 UTC) #2
Nicolas Zea
sync LGTM https://codereview.chromium.org/212873003/diff/180001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc (right): https://codereview.chromium.org/212873003/diff/180001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc#newcode380 components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc:380: if (specifics.address_home_language_code() != profile->language_code()) { You should ...
6 years, 9 months ago (2014-03-28 18:43:56 UTC) #3
Scott Hess - ex-Googler
https://codereview.chromium.org/212873003/diff/180001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/212873003/diff/180001/components/autofill/core/browser/webdata/autofill_table.cc#newcode1280 components/autofill/core/browser/webdata/autofill_table.cc:1280: "language_code VARCHAR, " Since ALTER TABLE can only add ...
6 years, 9 months ago (2014-03-28 19:53:57 UTC) #4
Scott Hess - ex-Googler
Also, just FYI, I'm mostly a SQLite reviewer. I suspect this code has local conventions ...
6 years, 9 months ago (2014-03-28 19:55:12 UTC) #5
please use gerrit instead
Scott: PTAL Patch Set 2. https://codereview.chromium.org/212873003/diff/180001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc (right): https://codereview.chromium.org/212873003/diff/180001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc#newcode380 components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc:380: if (specifics.address_home_language_code() != profile->language_code()) ...
6 years, 9 months ago (2014-03-28 22:00:38 UTC) #6
please use gerrit instead
Ruslan: PTAL autofill_dialog_controller_android.cc in Patch Set 2.
6 years, 9 months ago (2014-03-28 22:01:42 UTC) #7
aruslan
android bits lgtm assuming the tests pass.
6 years, 9 months ago (2014-03-28 22:07:16 UTC) #8
Ilya Sherman
Thanks, Rouslan! Looks pretty good. A few comments inline: https://codereview.chromium.org/212873003/diff/220001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/212873003/diff/220001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode3312 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:3312: ...
6 years, 8 months ago (2014-03-29 01:24:42 UTC) #9
Scott Hess - ex-Googler
WRT the v54 golden file, if it's broken, probably more appropriate to fix it in ...
6 years, 8 months ago (2014-03-31 17:46:37 UTC) #10
please use gerrit instead
Ilya & Scott: PTAL Patch Set 3. https://codereview.chromium.org/212873003/diff/220001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/212873003/diff/220001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode3312 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:3312: default: On ...
6 years, 8 months ago (2014-04-02 21:54:51 UTC) #11
Scott Hess - ex-Googler
https://codereview.chromium.org/212873003/diff/220001/components/autofill/core/browser/webdata/autofill_table.cc File components/autofill/core/browser/webdata/autofill_table.cc (right): https://codereview.chromium.org/212873003/diff/220001/components/autofill/core/browser/webdata/autofill_table.cc#newcode2278 components/autofill/core/browser/webdata/autofill_table.cc:2278: // the table was newly created when migrating from ...
6 years, 8 months ago (2014-04-02 22:20:21 UTC) #12
Ilya Sherman
On 2014/04/02 22:20:21, shess wrote: > https://codereview.chromium.org/212873003/diff/220001/components/autofill/core/browser/webdata/autofill_table.cc > File components/autofill/core/browser/webdata/autofill_table.cc (right): > > https://codereview.chromium.org/212873003/diff/220001/components/autofill/core/browser/webdata/autofill_table.cc#newcode2278 > ...
6 years, 8 months ago (2014-04-02 23:25:44 UTC) #13
Ilya Sherman
https://codereview.chromium.org/212873003/diff/250001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/212873003/diff/250001/components/autofill/core/browser/autofill_profile.cc#newcode448 components/autofill/core/browser/autofill_profile.cc:448: return language_code().compare(profile.language_code()); Hmm, it's a little strange to include ...
6 years, 8 months ago (2014-04-02 23:48:11 UTC) #14
Scott Hess - ex-Googler
On 2014/04/02 23:25:44, Ilya Sherman wrote: > This is no longer the case -- I ...
6 years, 8 months ago (2014-04-03 18:00:47 UTC) #15
Scott Hess - ex-Googler
I think LGTM from the SQLite side.
6 years, 8 months ago (2014-04-03 18:03:08 UTC) #16
please use gerrit instead
Ilya & Evan: PTAL Patch Set 5. https://codereview.chromium.org/212873003/diff/250001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/212873003/diff/250001/components/autofill/core/browser/autofill_profile.cc#newcode448 components/autofill/core/browser/autofill_profile.cc:448: return language_code().compare(profile.language_code()); ...
6 years, 8 months ago (2014-04-08 21:33:31 UTC) #17
please use gerrit instead
On 2014/04/08 21:33:31, Rouslan Solomakhin wrote: > Ilya & Evan: PTAL Patch Set 5. The ...
6 years, 8 months ago (2014-04-08 21:34:16 UTC) #18
Ilya Sherman
https://codereview.chromium.org/212873003/diff/250001/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc (right): https://codereview.chromium.org/212873003/diff/250001/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc#newcode883 components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc:883: // explicitly set. On 2014/04/08 21:33:31, Rouslan Solomakhin wrote: ...
6 years, 8 months ago (2014-04-08 22:55:14 UTC) #19
please use gerrit instead
On 2014/04/08 22:55:14, Ilya Sherman wrote: > https://codereview.chromium.org/212873003/diff/250001/components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc > File > components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc > (right): > ...
6 years, 8 months ago (2014-04-08 23:00:59 UTC) #20
Ilya Sherman
https://codereview.chromium.org/212873003/diff/310001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc (right): https://codereview.chromium.org/212873003/diff/310001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc#newcode640 components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc:640: merge_into->origin() != merge_from.origin()); Should this check the language code ...
6 years, 8 months ago (2014-04-08 23:08:19 UTC) #21
Ilya Sherman
On 2014/04/08 23:00:59, Rouslan Solomakhin wrote: > On 2014/04/08 22:55:14, Ilya Sherman wrote: > > ...
6 years, 8 months ago (2014-04-08 23:09:51 UTC) #22
please use gerrit instead
On 2014/04/08 23:09:51, Ilya Sherman wrote: > On 2014/04/08 23:00:59, Rouslan Solomakhin wrote: > > ...
6 years, 8 months ago (2014-04-09 18:18:11 UTC) #23
Ilya Sherman
Thanks for filing the bug. Just wanted to make sure you saw my other message ...
6 years, 8 months ago (2014-04-09 22:41:12 UTC) #24
please use gerrit instead
On 2014/04/09 22:41:12, Ilya Sherman wrote: > Thanks for filing the bug. Just wanted to ...
6 years, 8 months ago (2014-04-09 22:48:11 UTC) #25
please use gerrit instead
Ilya: PTAL Patch Set 6. https://codereview.chromium.org/212873003/diff/310001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc (right): https://codereview.chromium.org/212873003/diff/310001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc#newcode640 components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc:640: merge_into->origin() != merge_from.origin()); On ...
6 years, 8 months ago (2014-04-09 22:57:55 UTC) #26
Ilya Sherman
https://codereview.chromium.org/212873003/diff/310001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc File components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc (right): https://codereview.chromium.org/212873003/diff/310001/components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc#newcode640 components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc:640: merge_into->origin() != merge_from.origin()); On 2014/04/09 22:57:56, Rouslan Solomakhin wrote: ...
6 years, 8 months ago (2014-04-09 23:17:48 UTC) #27
please use gerrit instead
Ilya: PTAL Patch Set 7. https://codereview.chromium.org/212873003/diff/350001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/212873003/diff/350001/components/autofill/core/browser/autofill_profile.cc#newcode459 components/autofill/core/browser/autofill_profile.cc:459: Compare(profile) == 0; On ...
6 years, 8 months ago (2014-04-09 23:43:57 UTC) #28
Ilya Sherman
LGTM. Thanks, Rouslan! https://codereview.chromium.org/212873003/diff/370001/components/autofill/core/browser/autofill_profile.cc File components/autofill/core/browser/autofill_profile.cc (right): https://codereview.chromium.org/212873003/diff/370001/components/autofill/core/browser/autofill_profile.cc#newcode464 components/autofill/core/browser/autofill_profile.cc:464: EqualsSansGuid(profile); nit: Looks like this fits ...
6 years, 8 months ago (2014-04-09 23:58:30 UTC) #29
please use gerrit instead
Evan: I have enough ell-gees to send to CQ now. Would you like to skim ...
6 years, 8 months ago (2014-04-10 00:14:22 UTC) #30
Evan Stade
https://codereview.chromium.org/212873003/diff/390001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/212873003/diff/390001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode3631 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:3631: AddressLanguageCodeForSection(SECTION_SHIPPING)); use shipping_langauge_code_ directly https://codereview.chromium.org/212873003/diff/390001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode3953 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:3953: AddressLanguageCodeForSection(SECTION_BILLING)); ditto https://codereview.chromium.org/212873003/diff/390001/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc ...
6 years, 8 months ago (2014-04-10 00:58:48 UTC) #31
please use gerrit instead
Evan: PTAL Patch Set 9. https://codereview.chromium.org/212873003/diff/390001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/212873003/diff/390001/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode3631 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:3631: AddressLanguageCodeForSection(SECTION_SHIPPING)); On 2014/04/10 00:58:49, ...
6 years, 8 months ago (2014-04-10 20:39:44 UTC) #32
Evan Stade
lgtm
6 years, 8 months ago (2014-04-10 21:21:18 UTC) #33
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org
6 years, 8 months ago (2014-04-10 21:22:09 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/212873003/410001
6 years, 8 months ago (2014-04-10 21:23:02 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-11 01:10:21 UTC) #36
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) nacl_integration http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=295926
6 years, 8 months ago (2014-04-11 01:10:21 UTC) #37
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org
6 years, 8 months ago (2014-04-11 16:58:14 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rouslan@chromium.org/212873003/410001
6 years, 8 months ago (2014-04-11 16:59:02 UTC) #39
commit-bot: I haz the power
6 years, 8 months ago (2014-04-11 19:35:02 UTC) #40
Message was sent while issue was closed.
Change committed as 263311

Powered by Google App Engine
This is Rietveld 408576698