summaryrefslogtreecommitdiffstats
path: root/content/shell/browser/shell_web_contents_view_delegate_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/browser/shell_web_contents_view_delegate_win.cc')
-rw-r--r--content/shell/browser/shell_web_contents_view_delegate_win.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/shell/browser/shell_web_contents_view_delegate_win.cc b/content/shell/browser/shell_web_contents_view_delegate_win.cc
index d71bf0d..3ae4d2a8 100644
--- a/content/shell/browser/shell_web_contents_view_delegate_win.cc
+++ b/content/shell/browser/shell_web_contents_view_delegate_win.cc
@@ -72,8 +72,7 @@ ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() {
void ShellWebContentsViewDelegate::ShowContextMenu(
RenderFrameHost* render_frame_host,
const ContextMenuParams& params) {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kRunLayoutTest))
+ if (switches::IsRunLayoutTestSwitchPresent())
return;
params_ = params;