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

Unified Diff: chrome/browser/drive/drive_api_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: Fixing a bug affecting ProfileSyncService and CR comments. 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/drive/drive_api_service.cc
diff --git a/chrome/browser/drive/drive_api_service.cc b/chrome/browser/drive/drive_api_service.cc
index 2f8f7d33e502ab902b77f8bf1f8981fc1198d1f8..2e85775ef451317a6c62eab8849bba4bc603da12 100644
--- a/chrome/browser/drive/drive_api_service.cc
+++ b/chrome/browser/drive/drive_api_service.cc
@@ -306,6 +306,7 @@ const char kDriveApiRootDirectoryResourceId[] = "root";
DriveAPIService::DriveAPIService(
OAuth2TokenService* oauth2_token_service,
+ const std::string& account_id,
net::URLRequestContextGetter* url_request_context_getter,
base::TaskRunner* blocking_task_runner,
const GURL& base_url,
@@ -313,6 +314,7 @@ DriveAPIService::DriveAPIService(
const GURL& wapi_base_url,
const std::string& custom_user_agent)
: oauth2_token_service_(oauth2_token_service),
+ account_id_(account_id),
url_request_context_getter_(url_request_context_getter),
blocking_task_runner_(blocking_task_runner),
url_generator_(base_url, base_download_url),
@@ -339,11 +341,11 @@ void DriveAPIService::Initialize() {
scopes.push_back(util::kDriveAppsScope);
sender_.reset(new RequestSender(
- new google_apis::AuthService(
- oauth2_token_service_, url_request_context_getter_, scopes),
- url_request_context_getter_,
- blocking_task_runner_.get(),
- custom_user_agent_));
+ new google_apis::AuthService(oauth2_token_service_, account_id_,
Andrew T Wilson (Slow) 2013/08/30 10:47:00 I don't think this is wrapped correctly
fgorski 2013/08/30 20:10:16 Done.
+ url_request_context_getter_, scopes),
+ url_request_context_getter_,
+ blocking_task_runner_.get(),
+ custom_user_agent_));
sender_->auth_service()->AddObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698