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

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

Issue 324343002: [SyncFS] Support late authentication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/sync_file_system/drive_backend/sync_worker.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
index 3e8f2cd2798bce8ad7ac0abb18e71c0f1e720a52..9b66ec112114123c4209cbd4be4dd14a472fe668 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
+++ b/chrome/browser/sync_file_system/drive_backend/sync_worker.cc
@@ -337,7 +337,7 @@ void SyncWorker::OnNotificationReceived() {
MaybeScheduleNextTask();
}
-void SyncWorker::OnReadyToSendRequests(const std::string& account_id) {
+void SyncWorker::OnReadyToSendRequests() {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
has_refresh_token_ = true;
@@ -346,8 +346,7 @@ void SyncWorker::OnReadyToSendRequests(const std::string& account_id) {
return;
UpdateServiceState(REMOTE_SERVICE_OK, "Authenticated");
- if (!GetMetadataDatabase() && !account_id.empty()) {
- GetDriveService()->Initialize(account_id);
+ if (!GetMetadataDatabase()) {
PostInitializeTask();
return;
}

Powered by Google App Engine
This is Rietveld 408576698