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

Issue 1071773003: Remove persistent notifications from the database when they close. (Closed)

Created:
5 years, 8 months ago by Peter Beverloo
Modified:
5 years, 7 months ago
CC:
chromium-reviews, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove persistent notifications from the database when they close. This CL implements said behavior both for Android (by directly invoking PNSI::OnClose when an Intent is received) and for desktop through the PersistentNotificationDelegate. Tests will follow with a more elaborate suite for the database, when it's clear what lives in //chrome and what lives in //content. Depends on https://codereview.chromium.org/1099093003/ BUG=447628 Committed: https://crrev.com/f930f7d84a95ce4b73b487d892bce39184c0f828 Cr-Commit-Position: refs/heads/master@{#327912}

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -8 lines) Patch
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 1 chunk +14 lines, -2 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 7 chunks +35 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
Peter Beverloo
5 years, 8 months ago (2015-04-09 17:13:47 UTC) #2
johnme
https://codereview.chromium.org/1071773003/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc File chrome/browser/notifications/platform_notification_service_impl.cc (right): https://codereview.chromium.org/1071773003/diff/1/chrome/browser/notifications/platform_notification_service_impl.cc#newcode105 chrome/browser/notifications/platform_notification_service_impl.cc:105: base::Unretained(context), This doesn't look safe. Possible solution: move the ...
5 years, 8 months ago (2015-04-10 11:54:39 UTC) #3
dewittj
https://codereview.chromium.org/1071773003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc File chrome/browser/notifications/notification_ui_manager_android.cc (right): https://codereview.chromium.org/1071773003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc#newcode104 chrome/browser/notifications/notification_ui_manager_android.cc:104: // TODO(peter): Rather than assuming that the last used ...
5 years, 8 months ago (2015-04-10 17:18:31 UTC) #4
Peter Beverloo
https://codereview.chromium.org/1071773003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc File chrome/browser/notifications/notification_ui_manager_android.cc (right): https://codereview.chromium.org/1071773003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc#newcode104 chrome/browser/notifications/notification_ui_manager_android.cc:104: // TODO(peter): Rather than assuming that the last used ...
5 years, 8 months ago (2015-04-20 16:47:20 UTC) #5
dewittj
lgtm
5 years, 8 months ago (2015-04-20 16:57:54 UTC) #6
johnme
lgtm, thanks :)
5 years, 8 months ago (2015-04-20 16:59:31 UTC) #7
Peter Beverloo
Thanks guys! +avi for content/public/ change
5 years, 8 months ago (2015-04-20 17:00:43 UTC) #9
Avi (use Gerrit)
LGTM
5 years, 8 months ago (2015-04-20 17:34:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071773003/20001
5 years, 8 months ago (2015-04-20 17:39:18 UTC) #12
Peter Beverloo
On 2015/04/20 17:39:18, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
5 years, 8 months ago (2015-04-20 18:22:28 UTC) #14
Peter Beverloo
Rebased on top of the following CL, which included the content/public/ changes: https://codereview.chromium.org/1099093003/
5 years, 7 months ago (2015-05-01 15:06:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071773003/40001
5 years, 7 months ago (2015-05-01 15:07:40 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-01 16:03:50 UTC) #19
commit-bot: I haz the power
5 years, 7 months ago (2015-05-01 16:04:49 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f930f7d84a95ce4b73b487d892bce39184c0f828
Cr-Commit-Position: refs/heads/master@{#327912}

Powered by Google App Engine
This is Rietveld 408576698