Index: chrome/browser/tab_contents/render_view_context_menu.cc |
=================================================================== |
--- chrome/browser/tab_contents/render_view_context_menu.cc (revision 109003) |
+++ chrome/browser/tab_contents/render_view_context_menu.cc (working copy) |
@@ -1044,11 +1044,11 @@ |
return source_tab_contents_->controller().CanViewSource(); |
case IDC_CONTENT_CONTEXT_INSPECTELEMENT: |
- // Viewing page info is not a developer command but is meaningful for the |
- // same set of pages which developer commands are meaningful for. |
- case IDC_CONTENT_CONTEXT_VIEWPAGEINFO: |
return IsDevCommandEnabled(id); |
+ case IDC_CONTENT_CONTEXT_VIEWPAGEINFO: |
+ return source_tab_contents_->controller().GetActiveEntry() != NULL; |
+ |
case IDC_CONTENT_CONTEXT_TRANSLATE: { |
TabContentsWrapper* tab_contents_wrapper = |
TabContentsWrapper::GetCurrentWrapperForContents( |