Index: chrome/browser/tab_contents/popup_menu_helper_mac.mm |
diff --git a/chrome/browser/tab_contents/popup_menu_helper_mac.mm b/chrome/browser/tab_contents/popup_menu_helper_mac.mm |
index d38d10b041feee6516aea192a4149b00a3526425..4b47f2fa093f8725ef12a32eb10d1556acfd3fe1 100644 |
--- a/chrome/browser/tab_contents/popup_menu_helper_mac.mm |
+++ b/chrome/browser/tab_contents/popup_menu_helper_mac.mm |
@@ -80,8 +80,7 @@ void PopupMenuHelper::Observe( |
const NotificationSource& source, |
const NotificationDetails& details) { |
DCHECK(type == content::NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED); |
- RenderViewHost* rvh = Source<RenderViewHost>(source).ptr(); |
- DCHECK_EQ(render_view_host_, rvh); |
+ DCHECK(Source<RenderWidgetHost>(source).ptr() == render_view_host_); |
render_view_host_ = NULL; |
} |