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

Issue 1356023002: Mac: Support 10.10's -[NSViewController viewDidLoad] for BookmarkBarController (Closed)

Created:
5 years, 3 months ago by tapted
Modified:
5 years, 3 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 1 chunk +4 lines, -0 lines 2 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 1 4 chunks +13 lines, -2 lines 1 comment Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 1 3 chunks +1 line, -9 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
tapted
Hi Robert, please take a look https://codereview.chromium.org/1356023002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (left): https://codereview.chromium.org/1356023002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm#oldcode227 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:227: - (BOOL)setBookmarkButtonVisibility; (this ...
5 years, 3 months ago (2015-09-21 12:24:03 UTC) #2
Robert Sesek
Do you expect we'll have more of these to fix one-off? I was just contemplating ...
5 years, 3 months ago (2015-09-21 22:04:01 UTC) #3
tapted
On 2015/09/21 22:04:01, Robert Sesek wrote: > Do you expect we'll have more of these ...
5 years, 3 months ago (2015-09-21 23:55:16 UTC) #4
Robert Sesek
Yikes, this seems like a really poorly handled transition by Apple. Hopefully this does it. ...
5 years, 3 months ago (2015-09-22 18:25:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356023002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356023002/20001
5 years, 3 months ago (2015-09-22 22:55:52 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-22 23:45:07 UTC) #8
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 23:45:44 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/46ce5e6bc615a0f23207130ea2a06bff589ad2c0
Cr-Commit-Position: refs/heads/master@{#350264}

Powered by Google App Engine
This is Rietveld 408576698