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

Side by Side Diff: content/browser/frame_host/debug_urls.cc

Issue 456513002: Add base:: qualification to some CommandLine references in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: imerge Created 6 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/debug_urls.h" 5 #include "content/browser/frame_host/debug_urls.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/asan_invalid_access.h" 10 #include "base/debug/asan_invalid_access.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 return true; 104 return true;
105 } 105 }
106 106
107 107
108 } // namespace 108 } // namespace
109 109
110 bool HandleDebugURL(const GURL& url, PageTransition transition) { 110 bool HandleDebugURL(const GURL& url, PageTransition transition) {
111 // Ensure that the user explicitly navigated to this URL, unless 111 // Ensure that the user explicitly navigated to this URL, unless
112 // kEnableGpuBenchmarking is enabled by Telemetry. 112 // kEnableGpuBenchmarking is enabled by Telemetry.
113 bool is_telemetry_navigation = CommandLine::ForCurrentProcess()->HasSwitch( 113 bool is_telemetry_navigation =
114 cc::switches::kEnableGpuBenchmarking) && 114 base::CommandLine::ForCurrentProcess()->HasSwitch(
115 (transition & PAGE_TRANSITION_TYPED); 115 cc::switches::kEnableGpuBenchmarking) &&
116 (transition & PAGE_TRANSITION_TYPED);
116 117
117 if (!(transition & PAGE_TRANSITION_FROM_ADDRESS_BAR) && 118 if (!(transition & PAGE_TRANSITION_FROM_ADDRESS_BAR) &&
118 !is_telemetry_navigation) 119 !is_telemetry_navigation)
119 return false; 120 return false;
120 121
121 if (IsAsanDebugURL(url)) 122 if (IsAsanDebugURL(url))
122 return HandleAsanDebugURL(url); 123 return HandleAsanDebugURL(url);
123 124
124 if (url.host() == kChromeUIBrowserCrashHost) { 125 if (url.host() == kChromeUIBrowserCrashHost) {
125 // Induce an intentional crash in the browser process. 126 // Induce an intentional crash in the browser process.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 return true; 167 return true;
167 168
168 return url == GURL(kChromeUICrashURL) || 169 return url == GURL(kChromeUICrashURL) ||
169 url == GURL(kChromeUIDumpURL) || 170 url == GURL(kChromeUIDumpURL) ||
170 url == GURL(kChromeUIKillURL) || 171 url == GURL(kChromeUIKillURL) ||
171 url == GURL(kChromeUIHangURL) || 172 url == GURL(kChromeUIHangURL) ||
172 url == GURL(kChromeUIShorthangURL); 173 url == GURL(kChromeUIShorthangURL);
173 } 174 }
174 175
175 } // namespace content 176 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698