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

Unified Diff: remoting/host/url_fetcher.cc

Issue 10559036: Added URLRequestContext to constructor for URLRequest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Converted new unittest. 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: remoting/host/url_fetcher.cc
diff --git a/remoting/host/url_fetcher.cc b/remoting/host/url_fetcher.cc
index 91b23b3ef05e0fb524c313099680a87a73816208..d5dc29c6b54180157e4212bfd39fde5b6904e5fa 100644
--- a/remoting/host/url_fetcher.cc
+++ b/remoting/host/url_fetcher.cc
@@ -143,8 +143,10 @@ void UrlFetcher::Core::OnReadCompleted(net::URLRequest* request,
void UrlFetcher::Core::DoStart() {
DCHECK(network_task_runner_->BelongsToCurrentThread());
- request_.reset(new net::URLRequest(url_, this));
- request_->set_context(request_context_getter_->GetURLRequestContext());
+ request_.reset(new net::URLRequest(
+ url_,
+ this,
+ request_context_getter_->GetURLRequestContext()));
Sergey Ulanov 2012/06/20 00:51:51 all arguments can fit on one line. This should be
shalev 2012/06/20 20:13:12 Done.
switch (method_) {
case GET:

Powered by Google App Engine
This is Rietveld 408576698