diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-20 05:48:13 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-20 05:48:13 +0000 |
commit | 3cf7c298576f7cb1f34d8b704342339d6574dfe8 (patch) | |
tree | 9be11b672755d086f32dec219e7ac8c41c91dc9a /chrome/browser/browser_about_handler.cc | |
parent | eb053b46344f990e7faa184e70f048ac3e377e51 (diff) | |
download | chromium_src-3cf7c298576f7cb1f34d8b704342339d6574dfe8.zip chromium_src-3cf7c298576f7cb1f34d8b704342339d6574dfe8.tar.gz chromium_src-3cf7c298576f7cb1f34d8b704342339d6574dfe8.tar.bz2 |
Don't do Instant previews of chrome://crash
This also works for about:crash, which is normalized to chrome://crash/ by the time this function is reached.
BUG=92721
TEST=Enable instant, don't restrict to search only, type chrome://crash in omnibox without pressing enter, tab should not be loaded and crashed.
Also, interactive_ui_tests --gtest_filter=*CrashUrlCancelsInstant
Review URL: http://codereview.chromium.org/7689003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97561 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 9f6a753..12661de 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -168,18 +168,6 @@ const char* const kChromePaths[] = { #endif }; -// Debug paths, presented without links in chrome://about. -// These paths will not be suggested by BuiltinProvider. -const char* const kDebugChromePaths[] = { - chrome::kChromeUICrashHost, - chrome::kChromeUIKillHost, - chrome::kChromeUIHangHost, - chrome::kChromeUIShorthangHost, - chrome::kChromeUIGpuCleanHost, - chrome::kChromeUIGpuCrashHost, - chrome::kChromeUIGpuHangHost -}; - // AboutSource handles these chrome:// paths. const char* const kAboutSourceNames[] = { chrome::kChromeUIChromeURLsHost, @@ -442,8 +430,8 @@ std::string ChromeURLs() { "<p>The following pages are for debugging purposes only. Because they " "crash or hang the renderer, they're not linked directly; you can type " "them into the address bar if you need them.</p>\n<ul>"; - for (size_t i = 0; i < arraysize(kDebugChromePaths); i++) - html += "<li>chrome://" + std::string(kDebugChromePaths[i]) + "</li>\n"; + for (int i = 0; i < chrome::kNumberOfChromeDebugURLs; i++) + html += "<li>" + std::string(chrome::kChromeDebugURLs[i]) + "</li>\n"; html += "</ul>\n"; AppendFooter(&html); return html; |