summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 23:15:33 +0000
committerlazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 23:15:33 +0000
commitff80c0c3f14ed8b749231e204710cdb505d412d2 (patch)
tree321c8734375f2247f38255e8e495416fe4413862
parentfea7b6805a968d68fdbf9f1ae38acafa2ae32f62 (diff)
downloadchromium_src-ff80c0c3f14ed8b749231e204710cdb505d412d2.zip
chromium_src-ff80c0c3f14ed8b749231e204710cdb505d412d2.tar.gz
chromium_src-ff80c0c3f14ed8b749231e204710cdb505d412d2.tar.bz2
Do not show link menu items for guest (e.g. Open link in new tab).
BUG=140315 Test=Manually. Review URL: https://chromiumcodereview.appspot.com/17447012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207632 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index e5a8f01..c570da8 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -596,7 +596,8 @@ void RenderViewContextMenu::InitMenu() {
}
}
- if (has_link) {
+ // Do not show link related items for guest.
+ if (has_link && !is_guest_) {
AppendLinkItems();
if (params_.media_type != WebContextMenuData::MediaTypeNone)
menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);