Fix top crash due to r110394 - TabContentsViewCocoa renderWidgetHostWasResized

crashes due to a NULL tabContents pointer.

BUG=104751
TEST=no

Review URL: http://codereview.chromium.org/8586056

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110768 0039d316-1c4b-4281-b951-d872f2087c98
parent 519c9be3
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment