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

Unified Diff: chrome/browser/drive/gdata_wapi_service.h

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/gdata_wapi_service.h
diff --git a/chrome/browser/drive/gdata_wapi_service.h b/chrome/browser/drive/gdata_wapi_service.h
index b605b5da3930518ac791fa2f16b6537cb0fb158e..8a79b21b4e4e9b834d075c1db3b08818500f0642 100644
--- a/chrome/browser/drive/gdata_wapi_service.h
+++ b/chrome/browser/drive/gdata_wapi_service.h
@@ -43,6 +43,7 @@ class GDataWapiService : public DriveServiceInterface,
public google_apis::AuthServiceObserver {
public:
// |oauth2_token_service| is used for obtaining OAuth2 access tokens.
+ // |account_id| identifies account used to obtain OAuth2 access tokens.
// |url_request_context_getter| is used to initialize URLFetcher.
// |blocking_task_runner| is used to run blocking tasks (like parsing JSON).
// |base_url| is used to generate URLs for communicating with the WAPI
@@ -50,6 +51,7 @@ class GDataWapiService : public DriveServiceInterface,
// |custom_user_agent| is used for the User-Agent header in HTTP
// requests issued through the service if the value is not empty.
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,
@@ -186,6 +188,7 @@ class GDataWapiService : public DriveServiceInterface,
virtual void OnOAuth2RefreshTokenChanged() OVERRIDE;
OAuth2TokenService* oauth2_token_service_; // Not owned.
+ std::string account_id_;
net::URLRequestContextGetter* url_request_context_getter_; // Not owned.
scoped_refptr<base::TaskRunner> blocking_task_runner_;
scoped_ptr<google_apis::RequestSender> sender_;

Powered by Google App Engine
This is Rietveld 408576698