[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}
Showing
Please register or sign in to comment