diff options
author | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 23:15:33 +0000 |
---|---|---|
committer | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 23:15:33 +0000 |
commit | ff80c0c3f14ed8b749231e204710cdb505d412d2 (patch) | |
tree | 321c8734375f2247f38255e8e495416fe4413862 | |
parent | fea7b6805a968d68fdbf9f1ae38acafa2ae32f62 (diff) | |
download | chromium_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.cc | 3 |
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); |