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

Unified Diff: extensions/browser/extension_request_limiting_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
« no previous file with comments | « content/public/browser/resource_throttle.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_request_limiting_throttle.cc
diff --git a/extensions/browser/extension_request_limiting_throttle.cc b/extensions/browser/extension_request_limiting_throttle.cc
index 05d041014e3ae00aee4b1386986f515b16febddd..2e2134859d9b42192d48d9a2b3d524acabefd7eb 100644
--- a/extensions/browser/extension_request_limiting_throttle.cc
+++ b/extensions/browser/extension_request_limiting_throttle.cc
@@ -5,7 +5,6 @@
#include "extensions/browser/extension_request_limiting_throttle.h"
#include "base/logging.h"
-#include "content/public/browser/resource_controller.h"
#include "extensions/browser/extension_throttle_entry.h"
#include "extensions/browser/extension_throttle_manager.h"
#include "net/base/net_errors.h"
@@ -27,7 +26,7 @@ ExtensionRequestLimitingThrottle::~ExtensionRequestLimitingThrottle() {
void ExtensionRequestLimitingThrottle::WillStartRequest(bool* defer) {
throttling_entry_ = manager_->RegisterRequestUrl(request_->url());
if (throttling_entry_->ShouldRejectRequest(*request_))
- controller()->CancelWithError(net::ERR_TEMPORARILY_THROTTLED);
+ CancelWithError(net::ERR_TEMPORARILY_THROTTLED);
}
void ExtensionRequestLimitingThrottle::WillRedirectRequest(
@@ -40,7 +39,7 @@ void ExtensionRequestLimitingThrottle::WillRedirectRequest(
throttling_entry_ = manager_->RegisterRequestUrl(redirect_info.new_url);
if (throttling_entry_->ShouldRejectRequest(*request_))
- controller()->CancelWithError(net::ERR_TEMPORARILY_THROTTLED);
+ CancelWithError(net::ERR_TEMPORARILY_THROTTLED);
}
void ExtensionRequestLimitingThrottle::WillProcessResponse(bool* defer) {
« no previous file with comments | « content/public/browser/resource_throttle.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698