| 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 108c0626545ebddac99950cf03fd3fe69636b086..0e7c9f11dd7a6392472ee7751d27df7eba995796 100644
|
| --- a/chrome/browser/tab_contents/render_view_context_menu.cc
|
| +++ b/chrome/browser/tab_contents/render_view_context_menu.cc
|
| @@ -1918,8 +1918,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;
|
|
|
|
|