DescriptionMac: Support 10.10's -[NSViewController viewDidLoad] for BookmarkBarController
This is to prevent a crash which appears to be triggered from an
unexpected codepath during NIB loading.
After linking to the 10.10 SDK, a similar crash during NIB loading for
the ToolbarController began. This was fixed by supporting initialization
via the newly introduced -[NSViewController viewDidLoad] on 10.10, and
via [NSViewController awakeFromNib] on older OSes. However, crash logs
suggest that the fault moved on to the next NIB load, in
BookmarkBarController, which happens just after ToolbarController in
-[BrowserWindowController initWithBrowser:..].
To fix, apply a similar fix to the one for BookmarkBarController in
r346604.
BUG=528136
Committed: https://crrev.com/46ce5e6bc615a0f23207130ea2a06bff589ad2c0
Cr-Commit-Position: refs/heads/master@{#350264}
Patch Set 1 #Patch Set 2 : fix warnings #
Total comments: 3
Messages
Total messages: 9 (2 generated)
|