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

Unified Diff: content/browser/devtools/page_navigation_throttle.cc

Issue 2867833002: NavigationThrottle: allow customization of net::Error when blocking
Patch Set: Rebase Created 3 years, 7 months 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/devtools/page_navigation_throttle.cc
diff --git a/content/browser/devtools/page_navigation_throttle.cc b/content/browser/devtools/page_navigation_throttle.cc
index 013acbc2f69c1aeee2b9141d3a1294622391c5e3..8c5e61c182cba9037a0aa09230da60a28c49c11b 100644
--- a/content/browser/devtools/page_navigation_throttle.cc
+++ b/content/browser/devtools/page_navigation_throttle.cc
@@ -29,19 +29,19 @@ PageNavigationThrottle::~PageNavigationThrottle() {
NavigationThrottle::ThrottleCheckResult
PageNavigationThrottle::WillStartRequest() {
if (!page_handler_)
- return ThrottleCheckResult::PROCEED;
+ return NavigationThrottle::PROCEED;
navigation_deferred_ = true;
page_handler_->NavigationRequested(this);
- return ThrottleCheckResult::DEFER;
+ return NavigationThrottle::DEFER;
}
NavigationThrottle::ThrottleCheckResult
PageNavigationThrottle::WillRedirectRequest() {
if (!page_handler_)
- return ThrottleCheckResult::PROCEED;
+ return NavigationThrottle::PROCEED;
navigation_deferred_ = true;
page_handler_->NavigationRequested(this);
- return ThrottleCheckResult::DEFER;
+ return NavigationThrottle::DEFER;
}
const char* PageNavigationThrottle::GetNameForLogging() {

Powered by Google App Engine
This is Rietveld 408576698