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

Issue 173428: Fix bookmark bubble crash.... (Closed)

Created:
11 years, 4 months ago by John Grabowski
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Fix bookmark bubble crash. BUG=http://crbug.com/20131 TEST=see bug; was very specific. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24455

Patch Set 1 #

Total comments: 3

Patch Set 2 : '' #

Patch Set 3 : '' #

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

Messages

Total messages: 7 (0 generated)
John Grabowski
11 years, 4 months ago (2009-08-25 23:43:09 UTC) #1
John Grabowski
11 years, 4 months ago (2009-08-25 23:59:59 UTC) #2
pink (ping after 24hrs)
LGTM. http://codereview.chromium.org/173428/diff/1/2 File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): http://codereview.chromium.org/173428/diff/1/2#newcode51 Line 51: // This window needs to live just ...
11 years, 4 months ago (2009-08-26 00:06:05 UTC) #3
Avi (use Gerrit)
LG
11 years, 4 months ago (2009-08-26 00:31:34 UTC) #4
John Grabowski
http://codereview.chromium.org/173428/diff/1/2 File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): http://codereview.chromium.org/173428/diff/1/2#newcode51 Line 51: // This window needs to live just a ...
11 years, 4 months ago (2009-08-26 01:38:23 UTC) #5
John Grabowski
On 2009/08/26 01:38:23, John Grabowski wrote: > http://codereview.chromium.org/173428/diff/1/2 > File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): > > http://codereview.chromium.org/173428/diff/1/2#newcode51 ...
11 years, 4 months ago (2009-08-26 17:00:49 UTC) #6
jon
11 years, 3 months ago (2009-08-27 17:55:03 UTC) #7
Merged into 4.0.203.2

On 2009/08/26 17:00:49, John Grabowski wrote:
> On 2009/08/26 01:38:23, John Grabowski wrote:
> > http://codereview.chromium.org/173428/diff/1/2
> > File chrome/browser/cocoa/bookmark_bubble_controller.mm (right):
> > 
> > http://codereview.chromium.org/173428/diff/1/2#newcode51
> > Line 51: // This window needs to live just a little bit longer (to accept a
> > On 2009/08/26 00:06:05, pink wrote:
> > > i'm a little surprised we need to do this as we don't anywhere else.
> > 
> > The answer is because of the way we find out when to go away.
> > When the bubble loses key it's delegate (me) gets notified.
> > The delegate (me) tells our owner we are done and can be deallocated.
> > That deallocates both me and my window.
> > But oops, that all happens in the middle of my window handling
> resignKeyWindow.
> > 
> > Alternatively we could autorelease ourselves in our (delegate method)
> > windowDidResignKey:, and not have an "owner".  That would also solve the
> > problem.  Would you prefer that model instead?  I dislike self-deletion (we
> own
> > ourselves?!?!?) but will switch over if you think it cleaner.
> 
> After discussing with pink I'm moving this logic to windowDidResignKey: (and
> adding comments) to make things more clear.

Powered by Google App Engine
This is Rietveld 408576698