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

Unified Diff: components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc

Issue 2867833002: NavigationThrottle: allow customization of net::Error when blocking
Patch Set: Add unit tests. 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: components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
diff --git a/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc b/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
index 0e755245c872288e89c058fef4010c9bb05cf36e..af0e3c88c5ff18bdee1185cb4df3f039edea12af 100644
--- a/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
+++ b/components/subresource_filter/content/browser/activation_state_computing_navigation_throttle.cc
@@ -74,7 +74,7 @@ ActivationStateComputingNavigationThrottle::WillProcessResponse() {
parent_activation_state_->activation_level == ActivationLevel::DISABLED) {
DCHECK(navigation_handle()->IsInMainFrame());
DCHECK(!ruleset_handle_);
- return content::NavigationThrottle::ThrottleCheckResult::PROCEED;
+ return content::NavigationThrottle::PROCEED;
}
DCHECK(ruleset_handle_);
@@ -92,7 +92,7 @@ ActivationStateComputingNavigationThrottle::WillProcessResponse() {
base::Bind(&ActivationStateComputingNavigationThrottle::
OnActivationStateComputed,
weak_ptr_factory_.GetWeakPtr()));
- return content::NavigationThrottle::ThrottleCheckResult::DEFER;
+ return content::NavigationThrottle::DEFER;
}
const char* ActivationStateComputingNavigationThrottle::GetNameForLogging() {

Powered by Google App Engine
This is Rietveld 408576698