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

Unified Diff: components/autofill/browser/autocheckout_manager.cc

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/autocheckout_manager.cc
===================================================================
--- components/autofill/browser/autocheckout_manager.cc (revision 192613)
+++ components/autofill/browser/autocheckout_manager.cc (working copy)
@@ -354,10 +354,13 @@
// TODO(ramankk): Handle variants in a better fashion, need to distinguish
// between shipping and billing address.
- if (AutofillType(type).group() == AutofillType::CREDIT_CARD)
- credit_card_->FillFormField(field, 0, field_to_fill);
- else
- profile_->FillFormField(field, 0, field_to_fill);
+ if (AutofillType(type).group() == AutofillType::CREDIT_CARD) {
+ credit_card_->FillFormField(
+ field, 0, autofill_manager_->app_locale(), field_to_fill);
+ } else {
+ profile_->FillFormField(
+ field, 0, autofill_manager_->app_locale(), field_to_fill);
+ }
}
void AutocheckoutManager::SendAutocheckoutStatus(AutocheckoutStatus status) {
« no previous file with comments | « chrome_frame/test/delete_chrome_history_test.cc ('k') | components/autofill/browser/autocomplete_history_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698