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

Unified Diff: chrome/browser/drive/gdata_wapi_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: 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/drive/gdata_wapi_service.cc
diff --git a/chrome/browser/drive/gdata_wapi_service.cc b/chrome/browser/drive/gdata_wapi_service.cc
index 5acad45f7f98417127c74afbf104914f3260d70c..907a0b442ba9884e41b0a64cf79be7707a35c656 100644
--- a/chrome/browser/drive/gdata_wapi_service.cc
+++ b/chrome/browser/drive/gdata_wapi_service.cc
@@ -148,7 +148,7 @@ GDataWapiService::~GDataWapiService() {
sender_->auth_service()->RemoveObserver(this);
}
-void GDataWapiService::Initialize() {
+void GDataWapiService::Initialize(const std::string& account_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
std::vector<std::string> scopes;
@@ -158,8 +158,10 @@ void GDataWapiService::Initialize() {
// Drive App scope is required for even WAPI v3 apps access.
scopes.push_back(util::kDriveAppsScope);
sender_.reset(new RequestSender(
- new AuthService(
- oauth2_token_service_, url_request_context_getter_, scopes),
+ new AuthService(oauth2_token_service_,
+ account_id,
+ url_request_context_getter_,
+ scopes),
url_request_context_getter_,
blocking_task_runner_.get(),
custom_user_agent_));
« no previous file with comments | « chrome/browser/drive/gdata_wapi_service.h ('k') | chrome/browser/extensions/api/identity/experimental_identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698