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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc

Issue 740643003: Use URLRequestJobManager to retry data reduction proxy bypasses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added include Created 6 years, 1 month 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 | « no previous file | net/url_request/url_request_job_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
index f3e2a16f01820a157cb9ced0409c8a6a7900a263..6ce7f7b36df98857b2aced626e00dcdc52a3aafc 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc
@@ -12,7 +12,7 @@
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_http_job.h"
-#include "net/url_request/url_request_job_factory.h"
+#include "net/url_request/url_request_job_manager.h"
#include "url/url_constants.h"
namespace data_reduction_proxy {
@@ -48,8 +48,8 @@ net::URLRequestJob* DataReductionProxyInterceptor::MaybeInterceptResponse(
// Returning non-NULL has the effect of restarting the request with the
// supplied job.
DCHECK(request->url().SchemeIs(url::kHttpScheme));
- return request->context()->job_factory()->MaybeCreateJobWithProtocolHandler(
- url::kHttpScheme, request, network_delegate);
+ return net::URLRequestJobManager::GetInstance()->CreateJob(
+ request, network_delegate);
}
} // namespace data_reduction_proxy
« no previous file with comments | « no previous file | net/url_request/url_request_job_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698