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

Issue 6541082: It's not safe to delete the balloon view during MenuDelegate::StoppedShowing,... (Closed)

Created:
9 years, 10 months ago by John Gregg
Modified:
9 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

It's not safe to delete the balloon view during MenuDelegate::StoppedShowing, since it tears down the menu model. Do this as a delayed task instead. BUG=51177 TEST=autoclose notification with wrench menu open Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75767

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M chrome/browser/ui/gtk/notifications/balloon_view_gtk.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc View 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
John Gregg
9 years, 10 months ago (2011-02-22 21:33:27 UTC) #1
Andrew T Wilson (Slow)
LGTM http://codereview.chromium.org/6541082/diff/1/chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc File chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc (right): http://codereview.chromium.org/6541082/diff/1/chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc#newcode468 chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc:468: } So, is the intent that DelayedClose() should ...
9 years, 10 months ago (2011-02-23 00:43:58 UTC) #2
John Gregg
9 years, 10 months ago (2011-02-23 00:57:56 UTC) #3
On 2011/02/23 00:43:58, Andrew T Wilson wrote:
> LGTM
> 
>
http://codereview.chromium.org/6541082/diff/1/chrome/browser/ui/gtk/notificat...
> File chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc (right):
> 
>
http://codereview.chromium.org/6541082/diff/1/chrome/browser/ui/gtk/notificat...
> chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc:468: }
> So, is the intent that DelayedClose() should never be called directly, but
only
> via PostTask? If so, we should probably document this. I'm guessing the idea
is
> that it *could* be called directly, even though it isn't currently.

I think the thing to document is that it shouldn't be called directly while
processing a UI event on the balloon, since the balloon will be destroyed
immediately.  I will add a comment.

Powered by Google App Engine
This is Rietveld 408576698