Chromium Code Reviews| 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 |