Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc |
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc |
index 6d8bb6d24e99bf16a9bf882d86de17dca329822f..adb669a48ca90f0e58e54bf314dd96b347081c40 100644 |
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc |
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc |
@@ -1724,11 +1724,8 @@ void RenderViewContextMenu::NotifyURLOpened( |
bool RenderViewContextMenu::IsDevCommandEnabled(int id) const { |
if (id == IDC_CONTENT_CONTEXT_INSPECTELEMENT || |
id == IDC_CONTENT_CONTEXT_INSPECTBACKGROUNDPAGE) { |
- const base::CommandLine* command_line = |
- base::CommandLine::ForCurrentProcess(); |
if (!GetPrefs(browser_context_) |
- ->GetBoolean(prefs::kWebKitJavascriptEnabled) || |
- command_line->HasSwitch(switches::kDisableJavaScript)) |
+ ->GetBoolean(prefs::kWebKitJavascriptEnabled)) |
return false; |
// Don't enable the web inspector if the developer tools are disabled via |