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

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 6053012: This adds a "killed tab" page and pages reload when killed on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indent Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/browser_about_handler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/browser_about_handler.h" 5 #include "chrome/browser/browser_about_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 kAllAboutPaths[i] == kPluginsPath) { 283 kAllAboutPaths[i] == kPluginsPath) {
284 html.append("<li><a href='chrome://"); 284 html.append("<li><a href='chrome://");
285 } else { 285 } else {
286 html.append("<li><a href='chrome://about/"); 286 html.append("<li><a href='chrome://about/");
287 } 287 }
288 html.append(kAllAboutPaths[i]); 288 html.append(kAllAboutPaths[i]);
289 html.append("/'>about:"); 289 html.append("/'>about:");
290 html.append(kAllAboutPaths[i]); 290 html.append(kAllAboutPaths[i]);
291 html.append("</a>\n"); 291 html.append("</a>\n");
292 } 292 }
293 const char *debug[] = { "crash", "hang", "shorthang", "gpucrash", "gpuhang" }; 293 const char *debug[] = { "crash", "kill", "hang", "shorthang",
294 "gpucrash", "gpuhang" };
294 html.append("</ul><h2>For Debug</h2>"); 295 html.append("</ul><h2>For Debug</h2>");
295 html.append("</ul><p>The following pages are for debugging purposes only. " 296 html.append("</ul><p>The following pages are for debugging purposes only. "
296 "Because they crash or hang the renderer, they're not linked " 297 "Because they crash or hang the renderer, they're not linked "
297 "directly; you can type them into the address bar if you need " 298 "directly; you can type them into the address bar if you need "
298 "them.</p><ul>"); 299 "them.</p><ul>");
299 for (size_t i = 0; i < arraysize(debug); i++) { 300 for (size_t i = 0; i < arraysize(debug); i++) {
300 html.append("<li>"); 301 html.append("<li>");
301 html.append("about:"); 302 html.append("about:");
302 html.append(debug[i]); 303 html.append(debug[i]);
303 html.append("\n"); 304 html.append("\n");
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 // Run the dialog. This will re-use the existing one if it's already up. 1120 // Run the dialog. This will re-use the existing one if it's already up.
1120 AboutIPCDialog::RunDialog(); 1121 AboutIPCDialog::RunDialog();
1121 return true; 1122 return true;
1122 } 1123 }
1123 #endif 1124 #endif
1124 1125
1125 #endif // OFFICIAL_BUILD 1126 #endif // OFFICIAL_BUILD
1126 1127
1127 return false; 1128 return false;
1128 } 1129 }
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/browser_about_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698