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

Unified Diff: chrome/browser/chromeos/drive/drive_integration_service.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: Adding the AndroidPO2TS update Created 7 years, 4 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/chromeos/drive/drive_integration_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
index e6be3df5ad685ee21f569496397fab312948776f..c7d431c97655ef71b44f4ddd7c475220c84356c5 100644
--- a/chrome/browser/chromeos/drive/drive_integration_service.cc
+++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
@@ -137,7 +137,7 @@ DriveIntegrationService::DriveIntegrationService(
blocking_task_runner_ = blocking_pool->GetSequencedTaskRunner(
blocking_pool->GetSequenceToken());
- OAuth2TokenService* oauth_service =
+ ProfileOAuth2TokenService* oauth_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
if (test_drive_service) {
@@ -145,6 +145,7 @@ DriveIntegrationService::DriveIntegrationService(
} else if (util::IsDriveV2ApiEnabled()) {
drive_service_.reset(new DriveAPIService(
oauth_service,
+ oauth_service->GetPrimaryAccountId(),
g_browser_process->system_request_context(),
blocking_task_runner_.get(),
GURL(google_apis::DriveApiUrlGenerator::kBaseUrlForProduction),
@@ -154,6 +155,7 @@ DriveIntegrationService::DriveIntegrationService(
} else {
drive_service_.reset(new GDataWapiService(
oauth_service,
+ oauth_service->GetPrimaryAccountId(),
g_browser_process->system_request_context(),
blocking_task_runner_.get(),
GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction),

Powered by Google App Engine
This is Rietveld 408576698