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

Issue 2885803002: [ios] Remove TabModel cleanup from -dealloc to -browserStateDestroyed. (Closed)

Created:
3 years, 7 months ago by sdefresne
Modified:
3 years, 7 months ago
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Remove TabModel cleanup from -dealloc to -browserStateDestroyed. As the -dealloc is called at a later time with ARC, move the cleanup from -dealloc to -browserStateDestroyed to ensure it is determinically called even if ARC decide to -autorelease TabModel. Cleanup some of Tab ivar when the WebState is destroyed so that the corresponding Tab helpers -dealloc is called sooner. BUG=None Review-Url: https://codereview.chromium.org/2885803002 Cr-Commit-Position: refs/heads/master@{#473892} Committed: https://chromium.googlesource.com/chromium/src/+/0531535acb8768a164a255cf752fce224df75ddb

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -30 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/tabs/tab_model.mm View 1 2 chunks +27 lines, -30 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (9 generated)
sdefresne
Please take a look.
3 years, 7 months ago (2017-05-16 13:17:16 UTC) #4
rohitrao (ping after 24h)
lgtm
3 years, 7 months ago (2017-05-16 13:26:50 UTC) #5
rohitrao (ping after 24h)
https://codereview.chromium.org/2885803002/diff/1/ios/chrome/browser/tabs/tab_model.mm File ios/chrome/browser/tabs/tab_model.mm (left): https://codereview.chromium.org/2885803002/diff/1/ios/chrome/browser/tabs/tab_model.mm#oldcode195 ios/chrome/browser/tabs/tab_model.mm:195: // removeObserver: to be called first otherwise a lot ...
3 years, 7 months ago (2017-05-16 13:28:11 UTC) #6
sdefresne
On 2017/05/16 13:28:11, rohitrao (ping after 24h) wrote: > https://codereview.chromium.org/2885803002/diff/1/ios/chrome/browser/tabs/tab_model.mm > File ios/chrome/browser/tabs/tab_model.mm (left): > ...
3 years, 7 months ago (2017-05-16 13:41:12 UTC) #9
rohitrao (ping after 24h)
> I know that this CL changes semantic and more observers will be invoked. Should ...
3 years, 7 months ago (2017-05-16 14:01:39 UTC) #10
sdefresne
On 2017/05/16 14:01:39, rohitrao (ping after 24h) wrote: > > I know that this CL ...
3 years, 7 months ago (2017-05-16 14:21:48 UTC) #11
sdefresne
On 2017/05/16 14:21:48, sdefresne wrote: > On 2017/05/16 14:01:39, rohitrao (ping after 24h) wrote: > ...
3 years, 7 months ago (2017-05-16 16:23:27 UTC) #12
sdefresne
On 2017/05/16 16:23:27, sdefresne wrote: > On 2017/05/16 14:21:48, sdefresne wrote: > > On 2017/05/16 ...
3 years, 7 months ago (2017-05-17 14:21:05 UTC) #13
sdefresne
On 2017/05/17 14:21:05, sdefresne wrote: > On 2017/05/16 16:23:27, sdefresne wrote: > > On 2017/05/16 ...
3 years, 7 months ago (2017-05-17 16:22:28 UTC) #14
rohitrao (ping after 24h)
Can we clearly document the expected cost of this change (as part of this thread ...
3 years, 7 months ago (2017-05-18 11:39:16 UTC) #15
sdefresne
On 2017/05/18 11:39:16, rohitrao (ping after 24h) wrote: > Can we clearly document the expected ...
3 years, 7 months ago (2017-05-23 13:55:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2885803002/20001
3 years, 7 months ago (2017-05-23 14:33:25 UTC) #19
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 14:46:35 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0531535acb8768a164a255cf752f...

Powered by Google App Engine
This is Rietveld 408576698