summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-08 13:37:08 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-08 13:37:08 +0000
commita5e04eafb781ce5739ab08398bc7ded7ed512116 (patch)
treea620ad1268f1313da9fda613ef1c2822087d4c82 /chrome/browser/external_tab_container.cc
parente4c72f2ba72f31b1179edaa13a147e9f61899394 (diff)
downloadchromium_src-a5e04eafb781ce5739ab08398bc7ded7ed512116.zip
chromium_src-a5e04eafb781ce5739ab08398bc7ded7ed512116.tar.gz
chromium_src-a5e04eafb781ce5739ab08398bc7ded7ed512116.tar.bz2
Revert the revert to put it back in.
Revert 49162 - Doing this to see if it fixes some failing tests that started about when this landed. Revert 49031 Ensure that the context menu items displayed in ChromeFrame rendered pages are enabled/disabled correctly. To achieve this we now have a UpdateMenuItemStates function in the RenderViewContextMenuViews class which calls into the underlying menu's UpdateStates function which enables/disables items correctly. Fixes bug http://code.google.com/p/chromium/issues/detail?id=45785 Bug=45785 Review URL: http://codereview.chromium.org/2627005 TBR=ananta@chromium.org Review URL: http://codereview.chromium.org/2768001 TBR=thomasvl@chromium.org Review URL: http://codereview.chromium.org/2759002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 2e39a76..5fd672b 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -525,6 +525,7 @@ bool ExternalTabContainer::HandleContextMenu(const ContextMenuParams& params) {
new RenderViewContextMenuViews(tab_contents(), params));
external_context_menu_->SetExternal();
external_context_menu_->Init();
+ external_context_menu_->UpdateMenuItemStates();
POINT screen_pt = { params.x, params.y };
MapWindowPoints(GetNativeView(), HWND_DESKTOP, &screen_pt, 1);