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

Unified Diff: content/browser/tab_contents/popup_menu_helper_mac.mm

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 10 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
Index: content/browser/tab_contents/popup_menu_helper_mac.mm
diff --git a/content/browser/tab_contents/popup_menu_helper_mac.mm b/content/browser/tab_contents/popup_menu_helper_mac.mm
index 2d675ed2aaafc1230f711e01fbd5e41ac3887571..e505627a72ebf8a3c1d5af78ba68634bbd3255a6 100644
--- a/content/browser/tab_contents/popup_menu_helper_mac.mm
+++ b/content/browser/tab_contents/popup_menu_helper_mac.mm
@@ -17,7 +17,7 @@
#include "webkit/glue/webmenurunner_mac.h"
PopupMenuHelper::PopupMenuHelper(RenderViewHost* render_view_host)
- : render_view_host_(render_view_host) {
+ : render_view_host_(static_cast<RenderViewHostImpl*>(render_view_host)) {
notification_registrar_.Add(
this, content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED,
content::Source<RenderWidgetHost>(render_view_host));
@@ -35,7 +35,7 @@ void PopupMenuHelper::ShowPopupMenu(
// would in turn delete me, causing a crash once the -runMenuInView
// call returns. That's what was happening in <http://crbug.com/33250>).
RenderWidgetHostViewMac* rwhvm =
- static_cast<RenderWidgetHostViewMac*>(render_view_host_->view());
+ static_cast<RenderWidgetHostViewMac*>(render_view_host_->GetView());
scoped_nsobject<RenderWidgetHostViewCocoa> cocoa_view
([rwhvm->cocoa_view() retain]);
« no previous file with comments | « content/browser/tab_contents/popup_menu_helper_mac.h ('k') | content/browser/tab_contents/render_view_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698