Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2433)

Unified Diff: content/renderer/external_popup_menu.cc

Issue 197533008: Mac: ExternalPopupMenu::close should hide a showing popup menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/port/browser/render_view_host_delegate_view.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/external_popup_menu.cc
diff --git a/content/renderer/external_popup_menu.cc b/content/renderer/external_popup_menu.cc
index 019091313412ded4b1cad583b4428445fd5de771..a1bb2475b73b01c0050aeb075aa27639f3302bee 100644
--- a/content/renderer/external_popup_menu.cc
+++ b/content/renderer/external_popup_menu.cc
@@ -54,8 +54,9 @@ void ExternalPopupMenu::show(const blink::WebRect& bounds) {
}
void ExternalPopupMenu::close() {
- popup_menu_client_ = NULL;
- render_view_ = NULL;
+ render_view_->Send(new ViewHostMsg_HidePopup(render_view_->routing_id()));
+ render_view_->DidHideExternalPopupMenu();
+ // |this| was deleted.
}
#if defined(OS_MACOSX)
« no previous file with comments | « content/port/browser/render_view_host_delegate_view.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698