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

Unified Diff: content/browser/webui/url_data_manager_backend.cc

Issue 2498663002: Add chrome://dino short URL to link to the internet disconnected network error interstitial (Closed)
Patch Set: Created 4 years, 1 month 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 | « chrome/common/url_constants.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/url_data_manager_backend.cc
diff --git a/content/browser/webui/url_data_manager_backend.cc b/content/browser/webui/url_data_manager_backend.cc
index ed54fa2850a5d453c676e0035b6f1b47eb2c26ae..92e84b1cb10b1cbc72d901d33bb587d6fbc8e86e 100644
--- a/content/browser/webui/url_data_manager_backend.cc
+++ b/content/browser/webui/url_data_manager_backend.cc
@@ -582,6 +582,13 @@ class ChromeProtocolHandler
}
}
+ // Check for chrome://dino which is an alias for chrome://network-error/-106
+ if (request->url().SchemeIs(kChromeUIScheme) &&
+ request->url().host() == kChromeUIDinoHost) {
+ return new net::URLRequestErrorJob(request, network_delegate,
+ net::Error::ERR_INTERNET_DISCONNECTED);
+ }
+
// Fall back to using a custom handler
return new URLRequestChromeJob(
request, network_delegate,
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698