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

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

Issue 7799009: Fix NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « chrome/browser/file_select_helper.cc ('k') | content/browser/tab_contents/interstitial_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/file_select_helper.cc ('k') | content/browser/tab_contents/interstitial_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698