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

Issue 2459263004: Fullscreen Notifications: Fix crash if delegate is NULL (Closed)

Created:
4 years, 1 month ago by dewittj
Modified:
4 years, 1 month ago
Reviewers:
bmalcolm
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fullscreen Notifications: Fix crash if delegate is NULL Notification Delegates should never be NULL but it is not enforced with a DCHECK, so of course there is a delegate that is null (for the ChromeOS Battery notification). So fix the logic that never checks the delegate's validity in FullscreenNotificationBlocker. R=bmalcolm@chromium.org BUG=660889 TEST=have a fullscreen app window and drain the battery below the warning level. Committed: https://crrev.com/b58f87810fac6a4d5ef606032a35ed8e8b179bd2 Cr-Commit-Position: refs/heads/master@{#428825}

Patch Set 1 #

Patch Set 2 : remove braces. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M chrome/browser/notifications/fullscreen_notification_blocker.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
dewittj
PTAL, thanks!
4 years, 1 month ago (2016-10-31 18:44:38 UTC) #3
bmalcolm
lgtm LGTM Thanks. I was getting ready to do this, but was still getting my ...
4 years, 1 month ago (2016-10-31 18:47:03 UTC) #5
dewittj
if you have a ChromeOS build that is close to ready I'd appreciate a manual ...
4 years, 1 month ago (2016-10-31 18:48:15 UTC) #7
bmalcolm
Alas I don't
4 years, 1 month ago (2016-10-31 18:49:07 UTC) #8
dewittj
tested manually with chrome://device-emulator
4 years, 1 month ago (2016-10-31 21:29:12 UTC) #11
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/2459263004/20001
4 years, 1 month ago (2016-10-31 21:30:36 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-31 21:37:08 UTC) #16
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 21:40:58 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b58f87810fac6a4d5ef606032a35ed8e8b179bd2
Cr-Commit-Position: refs/heads/master@{#428825}

Powered by Google App Engine
This is Rietveld 408576698