Index: chrome/browser/tab_contents/render_view_context_menu.cc |
=================================================================== |
--- chrome/browser/tab_contents/render_view_context_menu.cc (revision 72634) |
+++ chrome/browser/tab_contents/render_view_context_menu.cc (working copy) |
@@ -943,7 +943,8 @@ |
return !!(params_.edit_flags & WebContextMenuData::CanSelectAll); |
case IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD: |
- return !profile_->IsOffTheRecord() && params_.link_url.is_valid(); |
+ return !profile_->IsOffTheRecord() && params_.link_url.is_valid() && |
+ profile_->GetPrefs()->GetBoolean(prefs::kIncognitoEnabled); |
case IDC_SPELLCHECK_ADD_TO_DICTIONARY: |
return !params_.misspelled_word.empty(); |