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

Issue 2776933006: CrOS: Do not allow notifications to be added during shutdown. (Closed)

Created:
3 years, 8 months ago by sammiequon
Modified:
3 years, 8 months ago
Reviewers:
xiyuan, stevenjb, dgn, sky
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

CrOS: Do not allow notifications to be added during shutdown. Attempt to fix crash in the bug. I think the cause of this is a notification being added after the shutdown process has started. Somewhat confirmed this by sending a notification after shutdown. BUG=660962 TEST=unit_tests --gtest_filter="MessageCenterNotificationManagerTest.AddNotificationOnShutdown" Review-Url: https://codereview.chromium.org/2776933006 Cr-Commit-Position: refs/heads/master@{#460789} Committed: https://chromium.googlesource.com/chromium/src/+/ee04538066ee663d06c4d502435cbad08106a816

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add StartShutdown method instead. #

Patch Set 3 : Trybots. #

Messages

Total messages: 38 (20 generated)
sammiequon
xiyuan@ - What do you think? Thanks!
3 years, 8 months ago (2017-03-28 19:03:44 UTC) #3
xiyuan
lgtm
3 years, 8 months ago (2017-03-28 20:32:45 UTC) #4
sammiequon
On 2017/03/28 20:32:45, xiyuan wrote: > lgtm Thanks! dgn@, sky@ - This is alternative to ...
3 years, 8 months ago (2017-03-28 20:43:46 UTC) #6
sky
https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc#newcode82 chrome/browser/notifications/message_center_notification_manager.cc:82: void MessageCenterNotificationManager::Add(const Notification& notification, Would it make more sense ...
3 years, 8 months ago (2017-03-28 22:00:34 UTC) #7
sammiequon
https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc#newcode82 chrome/browser/notifications/message_center_notification_manager.cc:82: void MessageCenterNotificationManager::Add(const Notification& notification, On 2017/03/28 22:00:34, sky wrote: ...
3 years, 8 months ago (2017-03-28 23:12:09 UTC) #8
sky
On 2017/03/28 23:12:09, sammiequon wrote: > https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc > File chrome/browser/notifications/message_center_notification_manager.cc > (right): > > https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc#newcode82 ...
3 years, 8 months ago (2017-03-28 23:56:54 UTC) #10
stevenjb
lgtm https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc#newcode82 chrome/browser/notifications/message_center_notification_manager.cc:82: void MessageCenterNotificationManager::Add(const Notification& notification, On 2017/03/28 23:12:08, sammiequon ...
3 years, 8 months ago (2017-03-29 00:21:33 UTC) #11
stevenjb
On 2017/03/29 00:21:33, stevenjb wrote: > lgtm > > https://codereview.chromium.org/2776933006/diff/1/chrome/browser/notifications/message_center_notification_manager.cc > File chrome/browser/notifications/message_center_notification_manager.cc > (right): ...
3 years, 8 months ago (2017-03-29 00:25:11 UTC) #12
dgn
lgtm
3 years, 8 months ago (2017-03-29 09:11:31 UTC) #13
xiyuan
On 2017/03/29 00:25:11, stevenjb wrote: > That said, I'm not sure this fix is completely ...
3 years, 8 months ago (2017-03-29 16:48:02 UTC) #14
stevenjb
On 2017/03/29 16:48:02, xiyuan wrote: > On 2017/03/29 00:25:11, stevenjb wrote: > > That said, ...
3 years, 8 months ago (2017-03-29 17:22:59 UTC) #15
xiyuan
On 2017/03/29 17:22:59, stevenjb wrote: > On 2017/03/29 16:48:02, xiyuan wrote: > > On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 17:31:53 UTC) #16
sammiequon
On 2017/03/29 17:31:53, xiyuan wrote: > On 2017/03/29 17:22:59, stevenjb wrote: > > On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 17:59:05 UTC) #17
xiyuan
Cool. lgtm++
3 years, 8 months ago (2017-03-29 18:02:07 UTC) #20
stevenjb
Nice. lgtm++
3 years, 8 months ago (2017-03-29 18:36:25 UTC) #21
sky
LGTM
3 years, 8 months ago (2017-03-29 20:47:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2776933006/40001
3 years, 8 months ago (2017-03-30 16:17:05 UTC) #35
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 16:25:02 UTC) #38
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ee04538066ee663d06c4d502435c...

Powered by Google App Engine
This is Rietveld 408576698