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

Unified Diff: chrome/browser/loader/data_reduction_proxy_resource_throttle_android.cc

Issue 2535723005: Stop using ResourceController in ResourceThrottle (Closed)
Patch Set: Addressed #62 Created 4 years 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/loader/data_reduction_proxy_resource_throttle_android.cc
diff --git a/chrome/browser/loader/data_reduction_proxy_resource_throttle_android.cc b/chrome/browser/loader/data_reduction_proxy_resource_throttle_android.cc
index b36576b0ef32537437cc2a347bb3004c11f0199a..c4ce04da697db2476a0fad09003e45a8485485fb 100644
--- a/chrome/browser/loader/data_reduction_proxy_resource_throttle_android.cc
+++ b/chrome/browser/loader/data_reduction_proxy_resource_throttle_android.cc
@@ -12,7 +12,6 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/resource_context.h"
-#include "content/public/browser/resource_controller.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/browser/web_contents.h"
#include "net/base/load_flags.h"
@@ -81,7 +80,7 @@ void DataReductionProxyResourceThrottle::WillRedirectRequest(
return;
if (request_->load_flags() & net::LOAD_PREFETCH) {
- controller()->Cancel();
+ Cancel();
return;
}
const content::ResourceRequestInfo* info =
@@ -147,7 +146,7 @@ void DataReductionProxyResourceThrottle::OnBlockingPageComplete(bool proceed) {
if (proceed)
ResumeRequest();
else
- controller()->Cancel();
+ Cancel();
}
SBThreatType DataReductionProxyResourceThrottle::CheckUrl() {
@@ -178,5 +177,5 @@ void DataReductionProxyResourceThrottle::ResumeRequest() {
// Inject the header before resuming the request.
request_->SetExtraRequestHeaderByName(kUnsafeUrlProceedHeader, "1", true);
- controller()->Resume();
+ Resume();
}
« no previous file with comments | « chrome/browser/extensions/user_script_listener_unittest.cc ('k') | chrome/browser/loader/safe_browsing_resource_throttle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698