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

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

Issue 19511002: Change google_api::RequestSender to take an AuthService instead of a Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « chrome/browser/drive/gdata_wapi_service.h ('k') | chrome/browser/google_apis/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1081538db6888a3449effbf436c20b3939e11e06..c2700458c0674bca2d42966d878d33d34f28cf72 100644
--- a/chrome/browser/drive/gdata_wapi_service.cc
+++ b/chrome/browser/drive/gdata_wapi_service.cc
@@ -148,10 +148,6 @@ GDataWapiService::~GDataWapiService() {
sender_->auth_service()->RemoveObserver(this);
}
-AuthService* GDataWapiService::auth_service_for_testing() {
- return sender_->auth_service();
-}
-
void GDataWapiService::Initialize(Profile* profile) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -161,12 +157,11 @@ void GDataWapiService::Initialize(Profile* profile) {
scopes.push_back(kUserContentScope);
// Drive App scope is required for even WAPI v3 apps access.
scopes.push_back(kDriveAppsScope);
- sender_.reset(new RequestSender(profile,
- url_request_context_getter_,
- blocking_task_runner_.get(),
- scopes,
- custom_user_agent_));
- sender_->Initialize();
+ sender_.reset(new RequestSender(
+ new AuthService(profile, url_request_context_getter_, scopes),
+ url_request_context_getter_,
+ blocking_task_runner_.get(),
+ custom_user_agent_));
sender_->auth_service()->AddObserver(this);
}
« no previous file with comments | « chrome/browser/drive/gdata_wapi_service.h ('k') | chrome/browser/google_apis/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698