Index: chrome/browser/tab_contents/render_view_context_menu.cc |
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc |
index 59d764434517975fc16dc99e7f3dcf23f57130d7..7dc0f19d29b14017d16c09918a83c8ac32e133fd 100644 |
--- a/chrome/browser/tab_contents/render_view_context_menu.cc |
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc |
@@ -1917,8 +1917,7 @@ void RenderViewContextMenu::MenuClosed(ui::SimpleMenuModel* source) { |
bool RenderViewContextMenu::IsDevCommandEnabled(int id) const { |
if (id == IDC_CONTENT_CONTEXT_INSPECTELEMENT) { |
const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- if (!profile_->GetPrefs()->GetBoolean( |
- prefs::kWebKitGlobalJavascriptEnabled) || |
+ if (!profile_->GetPrefs()->GetBoolean(prefs::kWebKitJavascriptEnabled) || |
command_line->HasSwitch(switches::kDisableJavaScript)) |
return false; |