summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.cc
diff options
context:
space:
mode:
authoramarinichev@chromium.org <amarinichev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 20:48:52 +0000
committeramarinichev@chromium.org <amarinichev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 20:48:52 +0000
commit184e3f380720a7b3a1d101c41fe3904815f138cb (patch)
tree7887de9d92f88cea906545becc04cd382490e941 /chrome/browser/browser_about_handler.cc
parent8707ec8224366e91d75dfbcbb03cf11161fcc6bc (diff)
downloadchromium_src-184e3f380720a7b3a1d101c41fe3904815f138cb.zip
chromium_src-184e3f380720a7b3a1d101c41fe3904815f138cb.tar.gz
chromium_src-184e3f380720a7b3a1d101c41fe3904815f138cb.tar.bz2
Added about:gpuclean
It removes all contexts from the GPU process. Can rename it to what was originally suggested in the bug, about:gpuclean seemed a little more consistent with other about:gpu* URLs we have. BUG=75215 TEST=tried it Review URL: http://codereview.chromium.org/6870019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r--chrome/browser/browser_about_handler.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index ffb85f3..2b80221 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -354,7 +354,7 @@ std::string AboutAbout() {
html += *i + "/'>about:" + *i + "</a></li>\n";
}
const char *debug[] = { "crash", "kill", "hang", "shorthang",
- "gpucrash", "gpuhang" };
+ "gpuclean", "gpucrash", "gpuhang" };
html += "</ul>\n<h2>For Debug</h2>\n"
"<p>The following pages are for debugging purposes only. Because they "
"crash or hang the renderer, they're not linked directly; you can type "
@@ -1327,6 +1327,10 @@ bool WillHandleBrowserAboutURL(GURL* url, Profile* profile) {
}
// Handle URLs to wreck the gpu process.
+ if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutGpuCleanURL)) {
+ GpuProcessHost::SendOnIO(
+ 0, content::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, new GpuMsg_Clean());
+ }
if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutGpuCrashURL)) {
GpuProcessHost::SendOnIO(
0, content::CAUSE_FOR_GPU_LAUNCH_ABOUT_GPUCRASH, new GpuMsg_Crash());