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

Unified Diff: chrome/browser/drive/drive_api_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/chromeos/contacts/google_contact_store.cc ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c2a5e348db2fa5ba42902b9ee59ed942adbb78c0..5526fbbb2f72d685ec2c98c1ae5aef08b49a14fb 100644
--- a/chrome/browser/drive/drive_api_service.cc
+++ b/chrome/browser/drive/drive_api_service.cc
@@ -287,13 +287,12 @@ void DriveAPIService::Initialize(Profile* profile) {
std::vector<std::string> scopes;
scopes.push_back(kDriveScope);
scopes.push_back(kDriveAppsReadonlyScope);
- sender_.reset(new RequestSender(profile,
- url_request_context_getter_,
- blocking_task_runner_.get(),
- scopes,
- custom_user_agent_));
- sender_->Initialize();
-
+ sender_.reset(new RequestSender(
+ new google_apis::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/chromeos/contacts/google_contact_store.cc ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698