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

Unified Diff: content/browser/tab_contents/debug_urls.cc

Issue 9960071: TabContents -> WebContentsImpl, part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « content/browser/tab_contents/debug_urls.h ('k') | content/browser/tab_contents/drag_utils_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/debug_urls.cc
diff --git a/content/browser/tab_contents/debug_urls.cc b/content/browser/tab_contents/debug_urls.cc
deleted file mode 100644
index 1eac54350f682e1cb53bfa052e9e723e8961f4ad..0000000000000000000000000000000000000000
--- a/content/browser/tab_contents/debug_urls.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/tab_contents/debug_urls.h"
-
-#include "content/browser/gpu/gpu_process_host_ui_shim.h"
-#include "content/public/common/url_constants.h"
-#include "googleurl/src/gurl.h"
-
-namespace content {
-
-bool HandleDebugURL(const GURL& url, content::PageTransition transition) {
- content::PageTransition base_transition =
- content::PageTransitionStripQualifier(transition);
- if (base_transition != content::PAGE_TRANSITION_TYPED)
- return false;
-
- if (url.host() == chrome::kChromeUIBrowserCrashHost) {
- // Induce an intentional crash in the browser process.
- CHECK(false);
- return true;
- }
-
- if (url == GURL(chrome::kChromeUIGpuCleanURL)) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateRemoveAllContext();
- return true;
- }
-
- if (url == GURL(chrome::kChromeUIGpuCrashURL)) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateCrash();
- return true;
- }
-
- if (url == GURL(chrome::kChromeUIGpuHangURL)) {
- GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim)
- shim->SimulateHang();
- return true;
- }
-
- return false;
-}
-
-} // namespace content
« no previous file with comments | « content/browser/tab_contents/debug_urls.h ('k') | content/browser/tab_contents/drag_utils_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698