Chromium Code Reviews| 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); |
|
nasko
2014/01/31 23:56:07
Shouldn't that list include the rest of the ones p
Charlie Reis
2014/01/31 23:59:22
No, there's a distinction between those 7 (which a
nasko
2014/02/01 00:05:05
Ah, that makes sense. Thanks!
|
| +} |
| + |
| } // namespace content |