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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_common.cc

Issue 124533003: Add country combobox to change country and rebuild address inputs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac Created 6 years, 11 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: chrome/browser/ui/autofill/autofill_dialog_common.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_common.cc b/chrome/browser/ui/autofill/autofill_dialog_common.cc
index 7c4db15825a5b791d868e86f72c9a42cf7f502f5..78953d25539554e6e3712f7b63899aefc693a9e7 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_common.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_common.cc
@@ -264,7 +264,8 @@ AutofillMetrics::DialogUiEvent DialogSectionToUiSelectionChangedEvent(
}
base::string16 GetHardcodedValueForType(ServerFieldType type) {
- if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) {
+ if (!IsI18nInputEnabled() &&
Evan Stade 2014/01/14 17:19:38 nit: could you make this // TODO(dbeam): remove t
Dan Beam 2014/01/15 03:10:48 Done.
+ AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) {
AutofillCountry country("US", g_browser_process->GetApplicationLocale());
return country.name();
}

Powered by Google App Engine
This is Rietveld 408576698