| Index: chrome/browser/sync/profile_sync_service.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
|
| index 90004dae5609d12b265d736feb82f3d2e512390d..db825ad69a77a4591adf80ab0cc66becdc2f8da4 100644
|
| --- a/chrome/browser/sync/profile_sync_service.cc
|
| +++ b/chrome/browser/sync/profile_sync_service.cc
|
| @@ -289,12 +289,8 @@ ProfileSyncService::~ProfileSyncService() {
|
| CHECK(!backend_initialized_);
|
| }
|
|
|
| -bool ProfileSyncService::IsSyncEnabledAndLoggedIn() {
|
| - // Exit if sync is not allowed or not requested.
|
| - if (!IsSyncAllowed() || !IsSyncRequested())
|
| - return false;
|
| -
|
| - return IsSignedIn();
|
| +bool ProfileSyncService::CanSyncStart() const {
|
| + return IsSyncAllowed() && IsSyncRequested() && IsSignedIn();
|
| }
|
|
|
| bool ProfileSyncService::IsOAuthRefreshTokenAvailable() {
|
|
|