OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |