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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_engine.cc

Issue 419463002: [SyncFS] Restore refresh token availability on re-initialize of SyncEngine (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/sync_engine.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
index ac005612baf7351b58cc4b535881af1ac5299b32..6e082ea1fc48ab14955cc0b5598ae4d7bc8dc84b 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
@@ -354,6 +354,10 @@ void SyncEngine::InitializeInternal(
service_state_ = REMOTE_SERVICE_TEMPORARY_UNAVAILABLE;
SetSyncEnabled(sync_enabled_);
OnNetworkChanged(net::NetworkChangeNotifier::GetConnectionType());
+ if (drive_service_->HasRefreshToken())
+ OnReadyToSendRequests();
+ else
+ OnRefreshTokenInvalid();
}
void SyncEngine::AddServiceObserver(SyncServiceObserver* observer) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698