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

Issue 699013002: [Cocoa] Crash fix, caused by recent tab indicator change. (Closed)

Created:
6 years, 1 month ago by miu
Modified:
6 years, 1 month ago
Reviewers:
Nico
CC:
chromium-reviews, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Cocoa] Crash fix, caused by recent tab indicator change. I misunderstood how ObjectiveC handled pointers declared with __weak. This change resolves the issue by nil'ing things out in [TabController dealloc], the standard solution. Introduced by: https://codereview.chromium.org/688523002/ BUG=429605 Committed: https://crrev.com/b85fc6de11e5e162864d58a32da6a02a9a24ea3a Cr-Commit-Position: refs/heads/master@{#302536}

Patch Set 1 #

Total comments: 2

Patch Set 2 : no need for nil check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/tabs/tab_controller.mm View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
miu
thakis: PTAL. Simple crash fix.
6 years, 1 month ago (2014-11-03 23:58:26 UTC) #2
Nico
lgtm test would be nice https://codereview.chromium.org/699013002/diff/1/chrome/browser/ui/cocoa/tabs/tab_controller.mm File chrome/browser/ui/cocoa/tabs/tab_controller.mm (right): https://codereview.chromium.org/699013002/diff/1/chrome/browser/ui/cocoa/tabs/tab_controller.mm#newcode131 chrome/browser/ui/cocoa/tabs/tab_controller.mm:131: if (mediaIndicatorButton_) { (nit: ...
6 years, 1 month ago (2014-11-04 00:01:22 UTC) #3
Nico
Oh, and maybe you want to remove the __weak if it doesn't do what you ...
6 years, 1 month ago (2014-11-04 00:02:43 UTC) #4
miu
Thanks for the quick turnaround on this. https://codereview.chromium.org/699013002/diff/1/chrome/browser/ui/cocoa/tabs/tab_controller.mm File chrome/browser/ui/cocoa/tabs/tab_controller.mm (right): https://codereview.chromium.org/699013002/diff/1/chrome/browser/ui/cocoa/tabs/tab_controller.mm#newcode131 chrome/browser/ui/cocoa/tabs/tab_controller.mm:131: if (mediaIndicatorButton_) ...
6 years, 1 month ago (2014-11-04 00:22:30 UTC) #5
Nico
slgtm
6 years, 1 month ago (2014-11-04 00:22: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/699013002/20001
6 years, 1 month ago (2014-11-04 00:24:23 UTC) #8
miu
On 2014/11/04 00:02:43, Nico wrote: > Oh, and maybe you want to remove the __weak ...
6 years, 1 month ago (2014-11-04 00:25:11 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-04 01:10:31 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 01:11:22 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b85fc6de11e5e162864d58a32da6a02a9a24ea3a
Cr-Commit-Position: refs/heads/master@{#302536}

Powered by Google App Engine
This is Rietveld 408576698