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

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

Issue 172783003: rAc: don't show countries with partially supported address fields for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 6 years, 10 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 4f19b35dca9ddde3f490a013f23f52c40fa18c34..e8da1ce193e4611a5787d60dfef288544e33ce8b 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -2690,8 +2690,8 @@ AutofillDialogControllerImpl::AutofillDialogControllerImpl(
wallet_items_requested_(false),
handling_use_wallet_link_click_(false),
passive_failed_(false),
- billing_country_combobox_model_(*GetManager()),
- shipping_country_combobox_model_(*GetManager()),
+ billing_country_combobox_model_(*GetManager(), false),
+ shipping_country_combobox_model_(*GetManager(), false),
suggested_cc_(this),
suggested_billing_(this),
suggested_cc_billing_(this),
@@ -2937,6 +2937,8 @@ void AutofillDialogControllerImpl::SuggestionsUpdated() {
for (size_t i = 0; i < profiles.size(); ++i) {
const AutofillProfile& profile = *profiles[i];
if (!i18ninput::AddressHasCompleteAndVerifiedData(profile) ||
+ !i18ninput::CountryIsFullySupported(
+ UTF16ToASCII(profile.GetRawInfo(ADDRESS_HOME_COUNTRY))) ||
(!i18ninput::Enabled() && HasInvalidAddress(*profiles[i]))) {
continue;
}

Powered by Google App Engine
This is Rietveld 408576698