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

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: Fixing a unit test, addressing comments from courage@ 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 8b6e9eb8fc5cd58a6241d73740b5246664fb76e5..eb2d3ab747457cef2d8bafcbe11ce46a86117513 100644
--- a/chrome/browser/drive/gdata_wapi_service.cc
+++ b/chrome/browser/drive/gdata_wapi_service.cc
@@ -127,12 +127,14 @@ void ParseAppListAndRun(
GDataWapiService::GDataWapiService(
OAuth2TokenService* oauth2_token_service,
+ const std::string& account_id,
net::URLRequestContextGetter* url_request_context_getter,
base::TaskRunner* blocking_task_runner,
const GURL& base_url,
const GURL& base_download_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),
@@ -156,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_));

Powered by Google App Engine
This is Rietveld 408576698