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

Unified Diff: chrome/browser/chromeos/gdata/gdata_protocol_handler.cc

Issue 10534100: Decouple URLRequestJob from URLRequestContext; access NetworkDelegate as a contructor parameter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merged with latest sync Created 8 years, 6 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/chromeos/gdata/gdata_protocol_handler.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
index a52ef03dbb75dc5b4ce8ec5481c74ffd4f306b54..ac409aa41e446a4b1fb41dc87167e4fcc8e23cf3 100644
--- a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
+++ b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
@@ -34,6 +34,7 @@
#include "net/http/http_response_headers.h"
#include "net/http/http_response_info.h"
#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_job.h"
using content::BrowserThread;
@@ -222,7 +223,7 @@ class GDataURLRequestJob : public net::URLRequestJob {
};
GDataURLRequestJob::GDataURLRequestJob(net::URLRequest* request)
- : net::URLRequestJob(request),
+ : net::URLRequestJob(request, request->context()->network_delegate()),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(
new base::WeakPtrFactory<GDataURLRequestJob>(this))),
file_system_(NULL),

Powered by Google App Engine
This is Rietveld 408576698