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

Issue 1836363002: Mac: Remove use of deprecated [NSNib instantiateNibWithOwner:topLevelObjects:]. (Closed)

Created:
4 years, 8 months ago by tapted
Modified:
4 years, 8 months ago
Reviewers:
erikchen
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@20160329-Mac-DeploymentTarget
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Remove use of deprecated [NSNib instantiateNibWithOwner:topLevelObjects:]. The replacement is [NSNib instantiateWithOwner:..], which says: Unlike legacy methods, the objects adhere to standard Cocoa memory management rules; it is necessary to keep a strong reference to the objects or the array to prevent the nib contents from being deallocated." That is, the deprecated method would put objects into the array with an additional reference count "For historical reasons" (according to Apple's "Nib Files" conceptual document). Chrome had a loop to remove this additional reference, which is no longer required. Chrome uses it in GetViewFromNib(..); used by content_shell and the save file dialog accessory view. Tested these manually. BUG=547071 Committed: https://crrev.com/868930a9584029000df4c195dbd6be71ee98c1da Cr-Commit-Position: refs/heads/master@{#384080}

Patch Set 1 #

Patch Set 2 : cl format #

Patch Set 3 : Add forward declare #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M ui/base/cocoa/nib_loading.mm View 1 2 2 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
tapted
erikchen: PTAL
4 years, 8 months ago (2016-03-30 19:47:29 UTC) #6
erikchen
lgtm
4 years, 8 months ago (2016-03-30 19:48:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836363002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836363002/40001
4 years, 8 months ago (2016-03-30 19:53:05 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-03-30 20:37:39 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 20:38:55 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/868930a9584029000df4c195dbd6be71ee98c1da
Cr-Commit-Position: refs/heads/master@{#384080}

Powered by Google App Engine
This is Rietveld 408576698