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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service_factory.cc

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to include the update to ProfileSyncService: r224220 Created 7 years, 3 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/sync_file_system_service_factory.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service_factory.cc b/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
index 8c9112e92a017dfe006add1df7f40b6e22cf5b02..a27d0f3ce3b974811751132b1eca011cf3668bc4 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service_factory.cc
@@ -83,9 +83,11 @@ SyncFileSystemServiceFactory::BuildServiceInstanceFor(
scoped_refptr<base::SequencedWorkerPool> worker_pool(
content::BrowserThread::GetBlockingPool());
+ ProfileOAuth2TokenService* token_service =
+ ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
scoped_ptr<drive::DriveAPIService> drive_api_service(
new drive::DriveAPIService(
- ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
+ token_service,
context->GetRequestContext(),
worker_pool.get(),
base_drive_url, base_download_url, wapi_base_url,

Powered by Google App Engine
This is Rietveld 408576698