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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 10335015: Treat SyncCredentialsLost as an auth error (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index 0007b6ac951e582079b6282514a64d3df15d8cdd..b0b649c24ee7f468cddd5748ccbbd621a6002889 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -180,9 +180,13 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
void RegisterAuthNotifications();
+ // Returns true if sync is enabled/not suppressed and the user is logged in.
+ // Virtual to enable mocking in tests.
Nicolas Zea 2012/05/15 23:39:04 Mention that being logged in does not necessarily
Andrew T Wilson (Slow) 2012/05/16 01:05:16 Done.
+ virtual bool IsSyncEnabledAndLoggedIn();
+
// Return whether all sync tokens are loaded and available for the backend to
// start up. Virtual to enable mocking in tests.
- virtual bool AreCredentialsAvailable();
+ virtual bool IsSyncTokenAvailable();
// Registers a data type controller with the sync service. This
// makes the data type controller available for use, it does not

Powered by Google App Engine
This is Rietveld 408576698