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

Unified Diff: components/autofill/core/browser/options_util.cc

Issue 1138373002: Autofill: Fix WalletIntegrationAvailable() regression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pay_07_check_wallet_available_03
Patch Set: Add missing dep for GN build. Created 5 years, 7 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: components/autofill/core/browser/options_util.cc
diff --git a/components/autofill/core/browser/options_util.cc b/components/autofill/core/browser/options_util.cc
index fa2718649c8e2a5d22426f7cfcd61d38426d5a65..718c302d243bf6168883823a5e1be978f5f0389b 100644
--- a/components/autofill/core/browser/options_util.cc
+++ b/components/autofill/core/browser/options_util.cc
@@ -26,7 +26,7 @@ bool WalletIntegrationAvailable(
// If the user is signed in and the feature is enabled, but no data is being
// synced, hide the option. The user doesn't have a Wallet account. If the
// feature is disabled, we can't know, so show the checkbox.
- if (pref_service.GetBoolean(prefs::kAutofillWalletImportEnabled))
+ if (!pref_service.GetBoolean(prefs::kAutofillWalletImportEnabled))
return true;
// If wallet is preferred but we haven't gotten the sync data yet, we don't
« no previous file with comments | « components/autofill/core/browser/BUILD.gn ('k') | components/autofill/core/browser/options_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698