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

Issue 857463003: mac: Fix a dangling delegate bug with MCPopupController. (Closed)

Created:
5 years, 11 months ago by erikchen
Modified:
5 years, 11 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: Fix a dangling delegate bug with MCPopupController. Due to the odd implementation of MCPopupController, all the clean up happens in -close rather than -dealloc. In all instances but one, the owner would destroy MCPopupController by calling -close or -closeWithAnimation. There was one instance where the owner was calling -release, which was preventing MCPopupController from properly cleaning up. BUG=423001 Committed: https://crrev.com/79865bb014b5f6a3a6adcca850ff2b61cfc2bbe0 Cr-Commit-Position: refs/heads/master@{#313316}

Patch Set 1 #

Patch Set 2 : Add a DCHECK. #

Total comments: 2

Patch Set 3 : Comments from avi, round two. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M ui/message_center/cocoa/popup_collection.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/message_center/cocoa/popup_controller.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/message_center/cocoa/popup_controller.mm View 1 2 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
erikchen
avi: Please review.
5 years, 11 months ago (2015-01-20 22:12:33 UTC) #2
Avi (use Gerrit)
LGTM Can you DCHECK or something if someone uses the class wrong?
5 years, 11 months ago (2015-01-21 05:33:42 UTC) #3
erikchen
On 2015/01/21 05:33:42, Avi wrote: > LGTM > > Can you DCHECK or something if ...
5 years, 11 months ago (2015-01-27 00:23:20 UTC) #5
Avi (use Gerrit)
https://codereview.chromium.org/857463003/diff/40001/ui/message_center/cocoa/popup_controller.h File ui/message_center/cocoa/popup_controller.h (right): https://codereview.chromium.org/857463003/diff/40001/ui/message_center/cocoa/popup_controller.h#newcode49 ui/message_center/cocoa/popup_controller.h:49: // Has the popup been closed before being dealloc-ed. ...
5 years, 11 months ago (2015-01-27 00:59:53 UTC) #6
erikchen
avi: PTAL https://codereview.chromium.org/857463003/diff/40001/ui/message_center/cocoa/popup_controller.h File ui/message_center/cocoa/popup_controller.h (right): https://codereview.chromium.org/857463003/diff/40001/ui/message_center/cocoa/popup_controller.h#newcode49 ui/message_center/cocoa/popup_controller.h:49: // Has the popup been closed before ...
5 years, 11 months ago (2015-01-27 04:23:39 UTC) #7
Avi (use Gerrit)
lgtm
5 years, 11 months ago (2015-01-27 05:55:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/857463003/60001
5 years, 11 months ago (2015-01-27 18:00:44 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 11 months ago (2015-01-27 18:50:52 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 18:51:47 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/79865bb014b5f6a3a6adcca850ff2b61cfc2bbe0
Cr-Commit-Position: refs/heads/master@{#313316}

Powered by Google App Engine
This is Rietveld 408576698