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

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

Issue 8586056: Fix top crash due to r110394 - TabContentsViewCocoa renderWidgetHostWasResized (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_view_mac.mm
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
index 5f52343aaee81b9b36ac9a5bfa87305b740914d7..ff7ce924c9a80f0e8fdf0de35b5c03d4e05c2c80 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -519,7 +519,7 @@ void TabContentsViewMac::CloseTab() {
- (void)renderWidgetHostWasResized {
TabContents* tabContents = [self tabContents];
- if (tabContents->render_view_host())
+ if (tabContents && tabContents->render_view_host())
tabContents->render_view_host()->WasResized();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698