Index: content/shell/browser/shell_web_contents_view_delegate_win.cc |
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 d71bf0d323389d0b7105a7e9755aa4b50bb5e38b..3ae4d2a893159196d5c008fef2e57b281e45f34d 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; |