summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-15 20:07:19 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-15 20:07:19 +0000
commit43ed628c3e1fb8085c0cb377c19db5b73bf11214 (patch)
tree48e241b416782c63b6ac489f53929c2651cc1e67 /chrome/browser/browser_about_handler.cc
parentd7a3eb035972863c1b011fe5aa47cc4353733910 (diff)
downloadchromium_src-43ed628c3e1fb8085c0cb377c19db5b73bf11214.zip
chromium_src-43ed628c3e1fb8085c0cb377c19db5b73bf11214.tar.gz
chromium_src-43ed628c3e1fb8085c0cb377c19db5b73bf11214.tar.bz2
Add about:gpucrash
BUG=None TEST=open a tab that uses the compositor. Open a second tab, go to about:gpucrash. Verify in the task manager that the gpu process is now gone. Review URL: http://codereview.chromium.org/3424007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59540 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r--chrome/browser/browser_about_handler.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 4c1b016..3f9abc2 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -273,7 +273,7 @@ std::string AboutAbout() {
html.append(kAllAboutPaths[i]);
html.append("</a>\n");
}
- const char *debug[] = { "crash", "hang", "shorthang" };
+ const char *debug[] = { "crash", "hang", "shorthang", "gpucrash" };
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 "
@@ -1209,6 +1209,12 @@ bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
return true;
}
+ // Handle URL to crash the gpu process.
+ if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutGpuCrashURL)) {
+ GpuProcessHost::SendAboutGpuCrash();
+ 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.
if (chrome_about_handler::WillHandle(*url))