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

Unified Diff: content/browser/browser_url_handler_impl.cc

Issue 418733002: Prevent duplicate navigation to debug URLs from Telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reinstate DebugURLHandler. Remove IsDebugURL(). Created 6 years, 5 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 | content/browser/frame_host/debug_urls.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_url_handler_impl.cc
diff --git a/content/browser/browser_url_handler_impl.cc b/content/browser/browser_url_handler_impl.cc
index 1b7050f8ddf1d8d687670713515da9ba3a9bf3a7..3b7f078b0b4896af4fd40ff632ae3d25a4ded16a 100644
--- a/content/browser/browser_url_handler_impl.cc
+++ b/content/browser/browser_url_handler_impl.cc
@@ -74,17 +74,6 @@ static bool ReverseViewSource(GURL* url, BrowserContext* browser_context) {
}
static bool DebugURLHandler(GURL* url, BrowserContext* browser_context) {
- // If running inside the Telemetry test harness, allow automated
- // navigations to access browser-side debug URLs. They must use the
- // chrome:// scheme, since the about: scheme won't be rewritten in
- // this code path.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- cc::switches::kEnableGpuBenchmarking)) {
- if (HandleDebugURL(*url, PAGE_TRANSITION_FROM_ADDRESS_BAR)) {
- return true;
- }
- }
-
// Circumvent processing URLs that the renderer process will handle.
return IsRendererDebugURL(*url);
}
« no previous file with comments | « no previous file | content/browser/frame_host/debug_urls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698