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

Unified Diff: components/web_restrictions/browser/web_restrictions_resource_throttle.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: components/web_restrictions/browser/web_restrictions_resource_throttle.cc
diff --git a/components/web_restrictions/browser/web_restrictions_resource_throttle.cc b/components/web_restrictions/browser/web_restrictions_resource_throttle.cc
index 6f83f08faee8a62646515adbf83287ae6840a0ca..1f78a4a5ed2f8b3660e7b546c7a9cd4114256e78 100644
--- a/components/web_restrictions/browser/web_restrictions_resource_throttle.cc
+++ b/components/web_restrictions/browser/web_restrictions_resource_throttle.cc
@@ -6,7 +6,6 @@
#include "base/bind.h"
#include "components/web_restrictions/browser/web_restrictions_client.h"
-#include "content/public/browser/resource_controller.h"
#include "net/base/net_errors.h"
#include "net/url_request/redirect_info.h"
#include "net/url_request/url_request.h"
@@ -53,9 +52,9 @@ bool WebRestrictionsResourceThrottle::ShouldDefer(const GURL& url) {
void WebRestrictionsResourceThrottle::OnCheckResult(const bool should_proceed) {
if (should_proceed) {
- controller()->Resume();
+ Resume();
} else {
- controller()->CancelWithError(net::ERR_BLOCKED_BY_ADMINISTRATOR);
+ CancelWithError(net::ERR_BLOCKED_BY_ADMINISTRATOR);
}
}

Powered by Google App Engine
This is Rietveld 408576698