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

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

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split Created 6 years, 12 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_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index d29a0dcdab428bdc279550c1f28eded742031b86..97908755d15f4969ca8b344ad0cac3caaee0c8b7 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -29,6 +29,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/autofill/autofill_dialog_common.h"
+#include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h"
#include "chrome/browser/ui/autofill/autofill_dialog_view.h"
#include "chrome/browser/ui/autofill/data_model_wrapper.h"
#if !defined(OS_ANDROID)
@@ -603,14 +604,21 @@ void AutofillDialogControllerImpl::Show() {
AutofillMetrics::SECURITY_METRIC_CROSS_ORIGIN_FRAME);
}
+ // TODO(dbeam): use GetManager()->GetDefaultCountryCodeForNewAddress()
+ // instead when the country combobox is visible. http://crbug.com/331544
+ std::string country_code = "US";
common::BuildInputsForSection(SECTION_CC,
- &requested_cc_fields_);
+ &requested_cc_fields_,
+ country_code);
common::BuildInputsForSection(SECTION_BILLING,
- &requested_billing_fields_);
+ &requested_billing_fields_,
+ country_code);
common::BuildInputsForSection(SECTION_CC_BILLING,
- &requested_cc_billing_fields_);
+ &requested_cc_billing_fields_,
+ country_code);
common::BuildInputsForSection(SECTION_SHIPPING,
- &requested_shipping_fields_);
+ &requested_shipping_fields_,
+ country_code);
// Test whether we need to show the shipping section. If filling that section
// would be a no-op, don't show it.

Powered by Google App Engine
This is Rietveld 408576698