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

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

Issue 106033007: Disable wallet in countries where it's not supported, take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fcfe3c47eff386a66e100d3f3172f47c129be84c..ab14cd821838cbe74a18143b0830bd09de8f3d1f 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -729,10 +729,8 @@ bool AutofillDialogControllerImpl::ShouldShowSpinner() const {
SignedInState() == REQUIRES_PASSIVE_SIGN_IN;
}
-// TODO(estade): Only show account chooser for Wallet in the US.
-// http://crbug.com/323641
bool AutofillDialogControllerImpl::ShouldShowAccountChooser() const {
- return !ShouldShowSpinner();
+ return !ShouldShowSpinner() && GetManager()->IsCountryOfInterest("US");
}
bool AutofillDialogControllerImpl::ShouldShowSignInWebView() const {
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698