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

Unified Diff: content/browser/loader/navigation_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: content/browser/loader/navigation_resource_throttle.cc
diff --git a/content/browser/loader/navigation_resource_throttle.cc b/content/browser/loader/navigation_resource_throttle.cc
index 0d075cc487070580e5018e11f27a6eac66031ec6..b4637dbaeecbcbdbe1379206483cc726c95665ba 100644
--- a/content/browser/loader/navigation_resource_throttle.cc
+++ b/content/browser/loader/navigation_resource_throttle.cc
@@ -21,7 +21,6 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_data.h"
#include "content/public/browser/resource_context.h"
-#include "content/public/browser/resource_controller.h"
#include "content/public/browser/resource_dispatcher_host_delegate.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/browser/ssl_status.h"
@@ -340,13 +339,13 @@ void NavigationResourceThrottle::OnUIChecksPerformed(
}
if (result == NavigationThrottle::CANCEL_AND_IGNORE) {
- controller()->CancelAndIgnore();
+ CancelAndIgnore();
} else if (result == NavigationThrottle::CANCEL) {
- controller()->Cancel();
+ Cancel();
} else if (result == NavigationThrottle::BLOCK_REQUEST) {
- controller()->CancelWithError(net::ERR_BLOCKED_BY_CLIENT);
+ CancelWithError(net::ERR_BLOCKED_BY_CLIENT);
} else {
- controller()->Resume();
+ Resume();
}
}

Powered by Google App Engine
This is Rietveld 408576698