| Index: content/browser/browser_url_handler.cc
|
| ===================================================================
|
| --- content/browser/browser_url_handler.cc (revision 120733)
|
| +++ content/browser/browser_url_handler.cc (working copy)
|
| @@ -59,6 +59,15 @@
|
| return true;
|
| }
|
|
|
| +static bool HandleDebugUrl(GURL* url,
|
| + content::BrowserContext* browser_context) {
|
| + // Circumvent processing URLs that the renderer process will handle.
|
| + return *url == GURL(chrome::kChromeUICrashURL) ||
|
| + *url == GURL(chrome::kChromeUIHangURL) ||
|
| + *url == GURL(chrome::kChromeUIKillURL) ||
|
| + *url == GURL(chrome::kChromeUIShorthangURL);
|
| +}
|
| +
|
| // static
|
| BrowserURLHandler* BrowserURLHandler::GetInstance() {
|
| return Singleton<BrowserURLHandler>::get();
|
| @@ -77,6 +86,8 @@
|
| }
|
|
|
| BrowserURLHandler::BrowserURLHandler() {
|
| + AddHandlerPair(&HandleDebugUrl, BrowserURLHandler::null_handler());
|
| +
|
| content::GetContentClient()->browser()->BrowserURLHandlerCreated(this);
|
|
|
| // view-source:
|
|
|