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

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: Addressing CR for patch 12 and one more Android issue 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 282abbd7859628cce3766464e19f16da9d473d1d..84f9f568f7675a13380f2aace2c824f72816bd0b 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
@@ -80,9 +80,13 @@ SyncFileSystemServiceFactory::BuildServiceInstanceFor(
GURL wapi_base_url(
google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction);
+ ProfileOAuth2TokenService* token_service =
+ ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
+
scoped_ptr<drive::DriveAPIService> drive_api_service(
new drive::DriveAPIService(
- ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
+ token_service,
+ token_service->GetPrimaryAccountId(),
context->GetRequestContext(),
content::BrowserThread::GetBlockingPool(),
base_drive_url, base_download_url, wapi_base_url,

Powered by Google App Engine
This is Rietveld 408576698