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

Issue 5319011: Listen for APP_TERMINATING in notification ui; close windows earlier in the p... (Closed)

Created:
10 years ago by John Gregg
Modified:
9 years ago
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Listen for APP_TERMINATING in notification ui; close windows earlier in the process before they get clobbered by browser_shutdown leading to a potential double-close. BUG=58053 TEST=exit chrome with notifications open Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67883

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Messages

Total messages: 2 (0 generated)
John Gregg
10 years ago (2010-12-01 00:59:13 UTC) #1
Andrew T Wilson (Slow)
10 years ago (2010-12-01 01:55:56 UTC) #2
LGTM

http://codereview.chromium.org/5319011/diff/12001/chrome/browser/notification...
File chrome/browser/notifications/notification_ui_manager.cc (right):

http://codereview.chromium.org/5319011/diff/12001/chrome/browser/notification...
chrome/browser/notifications/notification_ui_manager.cc:93: iter =
show_queue_.erase(iter);
You are tracking this separately, but just wanted to point out that we're
leaking a QueuedNotification here.

http://codereview.chromium.org/5319011/diff/12001/chrome/browser/notification...
chrome/browser/notifications/notification_ui_manager.cc:164: CancelAll();
Could also be CHECK(type == NotificationType::APP_TERMINATING). But this is cool
too.

Powered by Google App Engine
This is Rietveld 408576698