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

Unified Diff: chrome/browser/drive/gdata_wapi_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/gdata_wapi_service.h ('k') | chrome/browser/google_apis/auth_service.h » ('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 c1fb7be9c480bc84a516a6ad3a9ee484fc3501ef..efe3bea999b2a42e50c3b4d68b82c719c607e86c 100644
--- a/chrome/browser/drive/gdata_wapi_service.cc
+++ b/chrome/browser/drive/gdata_wapi_service.cc
@@ -19,6 +19,7 @@
#include "chrome/browser/google_apis/gdata_wapi_url_generator.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::AboutResource;
@@ -160,9 +161,9 @@ void GDataWapiService::Initialize(const std::string& account_id) {
sender_.reset(new RequestSender(
new 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_));
« no previous file with comments | « chrome/browser/drive/gdata_wapi_service.h ('k') | chrome/browser/google_apis/auth_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698