Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 7689003: Don't do Instant previews of chrome://crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Centralize debug URLs Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/instant/instant_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 340c604622f2fb9d9faa7e4e7090ec67f53e935b..d934d52e8e27e7e95bdaa1893c4e958f22f81be8 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;
« no previous file with comments | « no previous file | chrome/browser/instant/instant_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698