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

Issue 13488009: Remove application locale cache in autofill code. (Closed)

Created:
7 years, 8 months ago by jam
Modified:
7 years, 8 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, dbeam+watch-options_chromium.org, Raman Kakilate, akalin, Raghu Simha, tfarina, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, sail+watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, haitaol1, Ilya Sherman, tim (not reviewing)
Visibility:
Public.

Description

Remove application locale cache in autofill code (AutofillCountry::ApplicationLOcale). This is in preparation for removing content::GetContentClient calls outside of content. BUG=227047 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192622

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : review comments #

Patch Set 4 : sync #

Patch Set 5 : sync #

Patch Set 6 : actually remove AutofillCountry::ApplicationLocale #

Patch Set 7 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -255 lines) Patch
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_external_delegate_browsertest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/autofill/personal_data_manager_factory.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 5 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/country_combobox_model.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/data_model_wrapper.cc View 1 2 3 4 5 6 7 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/browser_tab_contents.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.cc View 1 2 3 4 5 6 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service.h View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/webdata/web_data_service_factory.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome_frame/test/delete_chrome_history_test.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/autocheckout_manager.cc View 1 2 3 4 5 6 1 chunk +7 lines, -4 lines 0 comments Download
M components/autofill/browser/autocomplete_history_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/autofill_country.h View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M components/autofill/browser/autofill_country.cc View 1 2 3 4 5 6 6 chunks +0 lines, -31 lines 0 comments Download
M components/autofill/browser/autofill_ie_toolbar_import_win.cc View 1 2 3 4 5 6 8 chunks +14 lines, -9 lines 0 comments Download
M components/autofill/browser/autofill_ie_toolbar_import_win_unittest.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M components/autofill/browser/autofill_manager.h View 1 2 3 4 5 6 3 chunks +8 lines, -2 lines 0 comments Download
M components/autofill/browser/autofill_manager.cc View 1 2 3 4 5 6 7 chunks +11 lines, -6 lines 0 comments Download
M components/autofill/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/autofill_merge_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M components/autofill/browser/autofill_metrics_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M components/autofill/browser/autofill_profile.h View 1 2 3 4 5 6 6 chunks +10 lines, -4 lines 0 comments Download
M components/autofill/browser/autofill_profile.cc View 1 2 3 4 5 6 10 chunks +34 lines, -22 lines 0 comments Download
M components/autofill/browser/autofill_profile_unittest.cc View 1 2 3 4 5 6 8 chunks +10 lines, -10 lines 0 comments Download
M components/autofill/browser/credit_card.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M components/autofill/browser/credit_card.cc View 1 2 3 4 5 6 3 chunks +4 lines, -6 lines 0 comments Download
M components/autofill/browser/credit_card_unittest.cc View 1 2 3 4 5 6 9 chunks +9 lines, -9 lines 0 comments Download
M components/autofill/browser/form_group.h View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M components/autofill/browser/form_group.cc View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download
M components/autofill/browser/personal_data_manager.h View 1 2 3 4 5 6 4 chunks +7 lines, -2 lines 0 comments Download
M components/autofill/browser/personal_data_manager.cc View 1 2 3 4 5 6 25 chunks +44 lines, -41 lines 0 comments Download
M components/autofill/browser/personal_data_manager_mac.mm View 1 2 3 4 5 6 6 chunks +11 lines, -7 lines 0 comments Download
M components/autofill/browser/personal_data_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/browser/phone_number_i18n.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M components/autofill/browser/phone_number_i18n.cc View 1 2 3 4 5 6 5 chunks +16 lines, -12 lines 0 comments Download
M components/autofill/browser/phone_number_i18n_unittest.cc View 1 2 3 4 5 6 1 chunk +20 lines, -10 lines 0 comments Download
M components/autofill/browser/wallet/wallet_address.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/browser/wallet/wallet_address.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M components/autofill/browser/wallet/wallet_items.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/browser/wallet/wallet_items.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M components/webdata/autofill/autofill_table.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/webdata/autofill/autofill_table.cc View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M components/webdata/autofill/autofill_table_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/webdata/autofill/web_data_service_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/webdata/autofill/web_database_migration_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Ilya Sherman
https://codereview.chromium.org/13488009/diff/4004/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/13488009/diff/4004/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode145 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:145: (*inputs)[j].type, g_browser_process->GetApplicationLocale()); nit: Please continue to cache this outside ...
7 years, 8 months ago (2013-04-04 04:27:38 UTC) #1
Ilya Sherman
https://codereview.chromium.org/13488009/diff/4004/components/autofill/browser/phone_number_i18n.cc File components/autofill/browser/phone_number_i18n.cc (right): https://codereview.chromium.org/13488009/diff/4004/components/autofill/browser/phone_number_i18n.cc#newcode158 components/autofill/browser/phone_number_i18n.cc:158: if (!ParsePhoneNumber(value, SanitizeRegion(region, app_locale), Looking through the call sites, ...
7 years, 8 months ago (2013-04-04 04:36:13 UTC) #2
jam
https://codereview.chromium.org/13488009/diff/4004/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc File chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (right): https://codereview.chromium.org/13488009/diff/4004/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc#newcode145 chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc:145: (*inputs)[j].type, g_browser_process->GetApplicationLocale()); On 2013/04/04 04:27:38, Ilya Sherman wrote: > ...
7 years, 8 months ago (2013-04-04 17:58:12 UTC) #3
Ilya Sherman
7 years, 8 months ago (2013-04-04 23:00:39 UTC) #4
LGTM, thanks.

https://codereview.chromium.org/13488009/diff/4004/components/autofill/browse...
File components/autofill/browser/personal_data_manager.cc (right):

https://codereview.chromium.org/13488009/diff/4004/components/autofill/browse...
components/autofill/browser/personal_data_manager.cc:707: }
On 2013/04/04 17:58:12, jam wrote:
> On 2013/04/04 04:27:38, Ilya Sherman wrote:
> > nit: No need for curly braces.
> 
> yeah, i prefer having them when there's an else. the style guide doesn't set a
> rule for this

The style guide might not set a rule for this, but Autofill code pretty
consistently omits them.

Powered by Google App Engine
This is Rietveld 408576698