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

Unified Diff: content/browser/loader/navigation_resource_throttle.cc

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Addressed comments, made redirect response PlzNavigate-only. Created 3 years, 8 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/loader/navigation_resource_throttle.cc
diff --git a/content/browser/loader/navigation_resource_throttle.cc b/content/browser/loader/navigation_resource_throttle.cc
index a2aa8aaa1227052a63bbc73fb4d391eac96e7c7d..f51a52c55a713ea6581240f3da41257c3db395d9 100644
--- a/content/browser/loader/navigation_resource_throttle.cc
+++ b/content/browser/loader/navigation_resource_throttle.cc
@@ -354,7 +354,8 @@ void NavigationResourceThrottle::OnUIChecksPerformed(
CancelAndIgnore();
} else if (result == NavigationThrottle::CANCEL) {
Cancel();
- } else if (result == NavigationThrottle::BLOCK_REQUEST) {
+ } else if (result == NavigationThrottle::BLOCK_REQUEST ||
+ result == NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE) {
CancelWithError(net::ERR_BLOCKED_BY_CLIENT);
} else if (result == NavigationThrottle::BLOCK_RESPONSE) {
// TODO(mkwst): If we cancel the main frame request with anything other than

Powered by Google App Engine
This is Rietveld 408576698