From 6fa27cff57f7d9cfee0218103be24dd289c5fe03 Mon Sep 17 00:00:00 2001 From: "avi@chromium.org" Date: Thu, 12 Feb 2009 18:43:56 +0000 Subject: IB outlets only get filled in during awakening, not initialization. D'oh! Review URL: http://codereview.chromium.org/20302 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9681 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/tab_contents_controller.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/browser/cocoa/tab_contents_controller.mm') diff --git a/chrome/browser/cocoa/tab_contents_controller.mm b/chrome/browser/cocoa/tab_contents_controller.mm index 4a517e8..83d9c7d 100644 --- a/chrome/browser/cocoa/tab_contents_controller.mm +++ b/chrome/browser/cocoa/tab_contents_controller.mm @@ -75,7 +75,7 @@ class LocationBarBridge : public LocationBar { if (commands_) observer_ = new TabContentsCommandObserver(self, commands); locationBarBridge_ = new LocationBarBridge(self); - [contentsBox_ setContentView:contents->GetNativeView()]; + contents_ = contents; } return self; } @@ -89,6 +89,8 @@ class LocationBarBridge : public LocationBar { } - (void)awakeFromNib { + [contentsBox_ setContentView:contents_->GetNativeView()]; + // Provide a starting point since we won't get notifications if the state // doesn't change between tabs. [self updateToolbarCommandStatus]; -- cgit v1.1