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

Issue 1407103008: mac: Stop using __weak. (Closed)

Created:
5 years, 1 month ago by Nico
Modified:
5 years, 1 month ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, rouslan+autofill_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, estade+watch_chromium.org, kmadhusu+watch_chromium.org, gcasto+watchlist_chromium.org, vabr+watchlist_chromium.org, Jered, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: Stop using __weak. __weak used to not have semantic meaning in non-GC non-ARC builds like ours. clang r251041 changed things so that it now has the meaning of "zeroing weak reference" even in non-ARC builds, and these require 10.7+. Since we still target 10.6, just replace the couple of "__weak"s we have with comments. For IBOutlets, use retain instead of assign outlets, and use __unsafe_unretained in the one place where the outlet can't be retain due to a reference cycle. (This has no semantic effect in non-ARC builds, but will do the right thing if we ever turn on ARC. Since that ref is explicitly zeroed in dealloc, it doesn't even seem much worse than __weak.) BUG=550066 Committed: https://crrev.com/bd7bc5a7d793e805db45ef7de827399a316116ee Cr-Commit-Position: refs/heads/master@{#357835}

Patch Set 1 #

Patch Set 2 : no ifdef #

Total comments: 4

Patch Set 3 : retain #

Patch Set 4 : noleak #

Patch Set 5 : read header #

Patch Set 6 : . #

Messages

Total messages: 17 (5 generated)
Nico
Patch set 1 has a few representative compile errors in #if 0 blocks, if you're ...
5 years, 1 month ago (2015-11-03 02:40:44 UTC) #3
Robert Sesek
https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h (right): https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h#newcode82 chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h:82: @property(readonly, nonatomic) IBOutlet NSImageView* iconView; Why the change from ...
5 years, 1 month ago (2015-11-03 15:41:11 UTC) #4
Nico
https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h (right): https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h#newcode82 chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h:82: @property(readonly, nonatomic) IBOutlet NSImageView* iconView; On 2015/11/03 15:41:11, Robert ...
5 years, 1 month ago (2015-11-03 16:01:18 UTC) #5
Nico
On 2015/11/03 16:01:18, Nico wrote: > https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h > File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h (right): > > https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h#newcode82 > ...
5 years, 1 month ago (2015-11-03 21:18:53 UTC) #6
Nico
Done.
5 years, 1 month ago (2015-11-03 21:21:40 UTC) #7
Robert Sesek
https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h (right): https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h#newcode82 chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h:82: @property(readonly, nonatomic) IBOutlet NSImageView* iconView; On 2015/11/03 16:01:18, Nico ...
5 years, 1 month ago (2015-11-03 22:03:51 UTC) #10
Nico
Done, thanks. https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h (right): https://codereview.chromium.org/1407103008/diff/20001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h#newcode82 chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.h:82: @property(readonly, nonatomic) IBOutlet NSImageView* iconView; On 2015/11/03 ...
5 years, 1 month ago (2015-11-03 22:15:58 UTC) #11
Nico
Ping. This is now the only blocker for starting a clang roll attempt.
5 years, 1 month ago (2015-11-04 16:02:20 UTC) #12
Robert Sesek
On 2015/11/04 16:02:20, Nico wrote: > Ping. This is now the only blocker for starting ...
5 years, 1 month ago (2015-11-04 16:14:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407103008/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407103008/100001
5 years, 1 month ago (2015-11-04 16:35:13 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-11-04 17:07:56 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 17:09:55 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/bd7bc5a7d793e805db45ef7de827399a316116ee
Cr-Commit-Position: refs/heads/master@{#357835}

Powered by Google App Engine
This is Rietveld 408576698