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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 9349010: Move handling of debug urls like chrome://crash, chrome://gpuclean to content. These are for test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
Index: chrome/browser/browser_about_handler.cc
===================================================================
--- chrome/browser/browser_about_handler.cc (revision 120733)
+++ chrome/browser/browser_about_handler.cc (working copy)
@@ -12,10 +12,8 @@
#include "base/string_util.h"
#include "chrome/browser/net/url_fixer_upper.h"
#include "chrome/browser/ui/browser_dialogs.h"
-#include "chrome/common/about_handler.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
-#include "content/browser/gpu/gpu_process_host_ui_shim.h"
#include "content/browser/sensors/sensors_provider.h"
#if defined(USE_TCMALLOC)
@@ -104,10 +102,6 @@
if (!url->SchemeIs(chrome::kChromeUIScheme))
return false;
- // Circumvent processing URLs that the renderer process will handle.
- if (chrome_about_handler::WillHandle(*url))
- return false;
-
CommandLine* cl = CommandLine::ForCurrentProcess();
bool enableUberPage = !cl->HasSwitch(switches::kDisableUberPage);
@@ -172,33 +166,6 @@
#endif // OFFICIAL_BUILD
- // Handle URLs to crash the browser or wreck the gpu process.
- if (host == chrome::kChromeUIBrowserCrashHost) {
- // Induce an intentional crash in the browser process.
- CHECK(false);
- }
-
- if (host == chrome::kChromeUIGpuCleanHost) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateRemoveAllContext();
- return true;
- }
-
- if (host == chrome::kChromeUIGpuCrashHost) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateCrash();
- return true;
- }
-
- if (host == chrome::kChromeUIGpuHangHost) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateHang();
- return true;
- }
-
#if defined(OS_CHROMEOS)
if (host == chrome::kChromeUIRotateHost) {
content::ScreenOrientation change = content::SCREEN_ORIENTATION_TOP;

Powered by Google App Engine
This is Rietveld 408576698