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

Unified Diff: chrome/browser/android/precache/precache_launcher.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: chrome/browser/android/precache/precache_launcher.cc
diff --git a/chrome/browser/android/precache/precache_launcher.cc b/chrome/browser/android/precache/precache_launcher.cc
index b3f91addc1a4b10540a392e4f5b92f177e77c041..4924cd5ca31a302fedb296519ac5cf270301997b 100644
--- a/chrome/browser/android/precache/precache_launcher.cc
+++ b/chrome/browser/android/precache/precache_launcher.cc
@@ -50,7 +50,7 @@ PrecacheManager* GetPrecacheManager(Profile* profile) {
bool IsSyncTabsEnabled(Profile* profile) {
ProfileSyncService* sync = ProfileSyncServiceFactory::GetForProfile(profile);
- return sync->IsSyncEnabledAndLoggedIn() &&
+ return sync->CanSyncStart() &&
sync->GetPreferredDataTypes().Has(syncer::PROXY_TABS);
}
« no previous file with comments | « chrome/browser/android/most_visited_sites.cc ('k') | chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698