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

Issue 3158031: Try to fix top crasher.... (Closed)

Created:
10 years, 4 months ago by John Grabowski
Modified:
9 years, 6 months ago
Reviewers:
mrossetti, dhollowa
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org, kerz_chromium, jeffreyc
Visibility:
Public.

Description

Try to fix top crasher. The problem is timing related so I am unable to write a unit test which proves this fixes things. The essence of the change is to make sure we don't send messages to objects which no longer exist by clearing the delegate pointer in objects we own before we go away (where "we" is an object). The delegate pattern does not get retained, which gives certain objects to hold dangling pointers. BUG=53205 http://crbug.com/53205 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57399

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M chrome/browser/cocoa/bookmark_bar_controller.mm View 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_bar_folder_controller.mm View 1 4 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/cocoa/bookmark_button_cell.mm View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
John Grabowski
Going to try and get this in M6; please review carefully
10 years, 4 months ago (2010-08-25 01:52:01 UTC) #1
dhollowa
http://codereview.chromium.org/3158031/diff/1/5 File chrome/browser/cocoa/bookmark_button.mm (right): http://codereview.chromium.org/3158031/diff/1/5#newcode146 chrome/browser/cocoa/bookmark_button.mm:146: inside_ = YES; Is it possible for the button ...
10 years, 4 months ago (2010-08-25 17:15:42 UTC) #2
mrossetti
http://codereview.chromium.org/3158031/diff/1/2 File chrome/browser/cocoa/bookmark_bar_controller.mm (right): http://codereview.chromium.org/3158031/diff/1/2#newcode1376 chrome/browser/cocoa/bookmark_bar_controller.mm:1376: [button setDelegate:nil]; Since you probably want to perform the ...
10 years, 4 months ago (2010-08-25 17:15:53 UTC) #3
John Grabowski
new diffs up Dave I wasn't able to repro your crash case but I did ...
10 years, 4 months ago (2010-08-25 20:28:30 UTC) #4
mrossetti
LGTM
10 years, 4 months ago (2010-08-25 21:10:34 UTC) #5
dhollowa
10 years, 4 months ago (2010-08-25 21:30:34 UTC) #6
I patched in the change and have been beating on it.  Can't trigger a zombie
now.  So LGTM.

Powered by Google App Engine
This is Rietveld 408576698