diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 02:45:17 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-25 02:45:17 +0000 |
commit | e9aac796f9c73762f82b79cdb49682383058b054 (patch) | |
tree | 8eb6ea1c59d565581516216d0b37721d9e707d49 /chrome/browser/browser_about_handler.cc | |
parent | 4bea556e9700932d734c6cf68028515701bff027 (diff) | |
download | chromium_src-e9aac796f9c73762f82b79cdb49682383058b054.zip chromium_src-e9aac796f9c73762f82b79cdb49682383058b054.tar.gz chromium_src-e9aac796f9c73762f82b79cdb49682383058b054.tar.bz2 |
Add an about:inducebrowsercrashforrealz URL.
This facilitates easy QA for browser crash reporting.
Review URL: http://codereview.chromium.org/147126
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index f699b1e..1e29d7f 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -606,6 +606,14 @@ bool WillHandleBrowserAboutURL(GURL* url) { return true; } + // Handle URL to crash the browser process. + if (LowerCaseEqualsASCII(url->spec(), chrome::kAboutBrowserCrash)) { + // Induce an intentional crash in the browser process. + int* bad_pointer = NULL; + *bad_pointer = 42; + 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 (AboutHandler::WillHandle(*url)) |