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

Unified Diff: components/browser_sync/browser/profile_sync_service.h

Issue 1858673002: [Sync] Inject startup dependencies into StartupController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 8 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 | components/browser_sync/browser/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/browser/profile_sync_service.h
diff --git a/components/browser_sync/browser/profile_sync_service.h b/components/browser_sync/browser/profile_sync_service.h
index 430b919a827f5117a0c0521f1cc57c47f18dc90f..42949f0bb9ed48f0f58ffccad150443ab9aac0c8 100644
--- a/components/browser_sync/browser/profile_sync_service.h
+++ b/components/browser_sync/browser/profile_sync_service.h
@@ -754,6 +754,13 @@ class ProfileSyncService : public sync_driver::SyncService,
// Whether sync has been authenticated with an account ID.
bool IsSignedIn() const;
+ // The backend can only start if sync can start and has an auth token. This is
+ // different fron CanSyncStart because it represents whether the backend can
+ // be started at this moment, whereas CanSyncStart represents whether sync can
+ // conceptually start without further user action (acquiring a token is an
+ // automatic process).
+ bool CanBackendStart() const;
+
// True if a syncing backend exists.
bool HasSyncingBackend() const;
« no previous file with comments | « no previous file | components/browser_sync/browser/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698