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 ecffc7da5f9b21fc1cca038161b6482ac9696be2..4391a6b0d18d94711069617aaa590d3ce8457c76 100644 |
--- a/chrome/browser/ui/autofill/autofill_dialog_common.cc |
+++ b/chrome/browser/ui/autofill/autofill_dialog_common.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/ui/autofill/autofill_dialog_common.h" |
+#include "chrome/browser/browser_process.h" |
+#include "components/autofill/core/browser/autofill_country.h" |
#include "components/autofill/core/browser/autofill_field.h" |
#include "components/autofill/core/browser/autofill_type.h" |
#include "grit/chromium_strings.h" |
@@ -176,5 +178,14 @@ AutofillMetrics::DialogUiEvent DialogSectionToUiSelectionChangedEvent( |
return AutofillMetrics::NUM_DIALOG_UI_EVENTS; |
} |
+string16 GetHardcodedValueForType(ServerFieldType type) { |
+ if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { |
+ AutofillCountry country("US", g_browser_process->GetApplicationLocale()); |
+ return country.name(); |
+ } |
+ |
+ return string16(); |
+} |
+ |
} // namespace common |
} // namespace autofill |