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

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

Issue 1175243009: [Sync] Rename SyncEnabledAndLoggedIn() to CanStartSync(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a const transition. Created 5 years, 6 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 718c302d243bf6168883823a5e1be978f5f0389b..b162d7767394ebb10874c228efd1a969aab0049e 100644
--- a/components/autofill/core/browser/options_util.cc
+++ b/components/autofill/core/browser/options_util.cc
@@ -15,7 +15,7 @@ bool WalletIntegrationAvailable(
sync_driver::SyncService* sync_service,
const PrefService& pref_service,
const PersonalDataManager& personal_data_manager) {
- if (!(sync_service && sync_service->IsSyncEnabledAndLoggedIn() &&
+ if (!(sync_service && sync_service->CanSyncStart() &&
sync_service->GetPreferredDataTypes().Has(syncer::AUTOFILL_PROFILE))) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698