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

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

Issue 26707004: Hold URLRequestContextGetter by scoped_refptr in Drive related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/drive_api_service.h ('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 2340cd496a351c3b2e1abf3e1e4b699f8d7bf496..31a873ec024d1f5488ea80980abda11e0a76f6f5 100644
--- a/chrome/browser/drive/drive_api_service.cc
+++ b/chrome/browser/drive/drive_api_service.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/google_apis/gdata_wapi_requests.h"
#include "chrome/browser/google_apis/request_sender.h"
#include "content/public/browser/browser_thread.h"
+#include "net/url_request/url_request_context_getter.h"
using content::BrowserThread;
using google_apis::AppList;
@@ -310,9 +311,9 @@ void DriveAPIService::Initialize(const std::string& account_id) {
sender_.reset(new RequestSender(
new google_apis::AuthService(oauth2_token_service_,
account_id,
- url_request_context_getter_,
+ url_request_context_getter_.get(),
scopes),
- url_request_context_getter_,
+ url_request_context_getter_.get(),
blocking_task_runner_.get(),
custom_user_agent_));
sender_->auth_service()->AddObserver(this);
« no previous file with comments | « chrome/browser/drive/drive_api_service.h ('k') | chrome/browser/drive/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698