diff options
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 4406a31..69ad244 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -271,7 +271,7 @@ std::string AboutAbout() { html.append(kAllAboutPaths[i]); html.append("</a>\n"); } - const char *debug[] = { "crash", "hang", "shorthang", "gpucrash" }; + const char *debug[] = { "crash", "hang", "shorthang", "gpucrash", "gpuhang" }; html.append("</ul><h2>For Debug</h2>"); html.append("</ul><p>The following pages are for debugging purposes only. " "Because they crash or hang the renderer, they're not linked " @@ -1160,11 +1160,15 @@ bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) { return true; } - // Handle URL to crash the gpu process. + // Handle URLs to wreck the gpu process. if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutGpuCrashURL)) { GpuProcessHost::SendAboutGpuCrash(); return true; } + if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutGpuHangURL)) { + GpuProcessHost::SendAboutGpuHang(); + return true; + } // There are a few about: URLs that we hand over to the renderer. If the // renderer wants them, don't do any rewriting. |