Index: ui/views/controls/menu/menu_host.cc |
diff --git a/ui/views/controls/menu/menu_host.cc b/ui/views/controls/menu/menu_host.cc |
index 6dea62c6560fb09aba67c2227ea428a7936d386f..f9dd5b2a5507c3f0e05c03de8f2feea18a8b5134 100644 |
--- a/ui/views/controls/menu/menu_host.cc |
+++ b/ui/views/controls/menu/menu_host.cc |
@@ -29,6 +29,7 @@ MenuHost::MenuHost(SubmenuView* submenu) |
: submenu_(submenu), |
destroying_(false), |
ignore_capture_lost_(false) { |
+ set_auto_release_capture(false); |
} |
MenuHost::~MenuHost() { |
@@ -109,10 +110,6 @@ internal::RootView* MenuHost::CreateRootView() { |
return new MenuHostRootView(this, submenu_); |
} |
-bool MenuHost::ShouldReleaseCaptureOnMouseReleased() const { |
- return false; |
-} |
- |
void MenuHost::OnMouseCaptureLost() { |
if (destroying_ || ignore_capture_lost_) |
return; |