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

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: merge 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_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..35b6dc55fc6e969e7da793c4fb2eebba61e8120e 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,13 +604,20 @@ 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,
+ country_code,
&requested_cc_fields_);
common::BuildInputsForSection(SECTION_BILLING,
+ country_code,
&requested_billing_fields_);
common::BuildInputsForSection(SECTION_CC_BILLING,
+ country_code,
&requested_cc_billing_fields_);
common::BuildInputsForSection(SECTION_SHIPPING,
+ country_code,
&requested_shipping_fields_);
// Test whether we need to show the shipping section. If filling that section

Powered by Google App Engine
This is Rietveld 408576698