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

Unified Diff: chrome/browser/signin/signin_tracker.cc

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove token prefetch. Move UMA counters. Fix some tests. Etc. Created 7 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/signin/signin_tracker.cc
diff --git a/chrome/browser/signin/signin_tracker.cc b/chrome/browser/signin/signin_tracker.cc
index cdddc4966590e381a1aeffda7c2072334b4b6b94..604a0983cfcdee7c88f6d47f5092373c7c0937a3 100644
--- a/chrome/browser/signin/signin_tracker.cc
+++ b/chrome/browser/signin/signin_tracker.cc
@@ -172,7 +172,7 @@ bool SigninTracker::AreServicesSignedIn(Profile* profile) {
ProfileSyncService* service =
ProfileSyncServiceFactory::GetForProfile(profile);
return (service->IsSyncEnabledAndLoggedIn() &&
- service->IsSyncTokenAvailable() &&
+ service->IsOAuthRefreshTokenAvailable() &&
service->GetAuthError().state() == GoogleServiceAuthError::NONE &&
!service->HasUnrecoverableError());
}

Powered by Google App Engine
This is Rietveld 408576698