| Index: chrome/browser/sync/profile_sync_service_android.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_android.cc b/chrome/browser/sync/profile_sync_service_android.cc
|
| index ba0630135b632b96155075b8f07ca8b17296fbb5..c35abb769ab8902d7ae61be8223bed4f453d3ca2 100644
|
| --- a/chrome/browser/sync/profile_sync_service_android.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_android.cc
|
| @@ -176,7 +176,7 @@ void ProfileSyncServiceAndroid::SignInSync(JNIEnv* env, jobject) {
|
| // should start up automatically as long as it has credentials). This can
|
| // happen normally if (for example) the user closes and reopens the sync
|
| // settings window quickly during initial startup.
|
| - if (sync_service_->IsSyncEnabledAndLoggedIn() &&
|
| + if (sync_service_->CanSyncStart() &&
|
| sync_service_->IsOAuthRefreshTokenAvailable() &&
|
| sync_service_->HasSyncSetupCompleted()) {
|
| return;
|
|
|