Index: content/browser/frame_host/debug_urls.cc |
diff --git a/content/browser/frame_host/debug_urls.cc b/content/browser/frame_host/debug_urls.cc |
index 3322e51a20f0931c78e240515a7d50486ee26a63..4e9d49d32a3d7be43ab7cb5b882f1cfd17c3d0d7 100644 |
--- a/content/browser/frame_host/debug_urls.cc |
+++ b/content/browser/frame_host/debug_urls.cc |
@@ -80,4 +80,17 @@ bool HandleDebugURL(const GURL& url, PageTransition transition) { |
return false; |
} |
+bool IsRendererDebugURL(const GURL& url) { |
+ if (!url.is_valid()) |
+ return false; |
+ |
+ if (url.SchemeIs(kJavaScriptScheme)) |
+ return true; |
+ |
+ return url == GURL(kChromeUICrashURL) || |
+ url == GURL(kChromeUIKillURL) || |
+ url == GURL(kChromeUIHangURL) || |
+ url == GURL(kChromeUIShorthangURL); |
+} |
+ |
} // namespace content |