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

Issue 784383002: Support persistent notifications in the PlatformNotificationServiceImpl. (Closed)

Created:
6 years ago by Peter Beverloo
Modified:
6 years ago
CC:
chromium-reviews, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@n-chrome-base
Project:
chromium
Visibility:
Public.

Description

Support persistent notifications in the PlatformNotificationServiceImpl. This patch makes it possible to create and use persistent notifications based on delegates. This works reliable on desktop, but does not yet implement the after-browser-restart call for Android. BUG=432527 Committed: https://crrev.com/eb322fc9a5882550d2a34b04954a5b3f9f8e63f9 Cr-Commit-Position: refs/heads/master@{#308353}

Patch Set 1 #

Patch Set 2 : adds unit tests #

Patch Set 3 : adds browser tests #

Total comments: 23

Patch Set 4 : address comments #

Patch Set 5 : rebase #

Patch Set 6 : add copyright header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+619 lines, -22 lines) Patch
A chrome/browser/notifications/persistent_notification_delegate.h View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/notifications/persistent_notification_delegate.cc View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/notifications/platform_notification_service_browsertest.cc View 1 2 3 1 chunk +232 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 4 5 chunks +28 lines, -1 line 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 chunks +76 lines, -20 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 3 4 4 chunks +55 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/test/data/notifications/platform_notification_service.html View 1 2 3 1 chunk +107 lines, -0 lines 0 comments Download
A chrome/test/data/notifications/platform_notification_service.js View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
Peter Beverloo
Together with the following three patches, this provides a full, end-to-end implementation of persistent notifications. ...
6 years ago (2014-12-09 19:43:54 UTC) #2
dewittj
where is NotificationEventDispatcher defined?
6 years ago (2014-12-10 00:35:04 UTC) #3
Peter Beverloo
On 2014/12/10 00:35:04, dewittj wrote: > where is NotificationEventDispatcher defined? content/public/browser/notification_event_dispatcher.h. Implemented by content/browser/notifications/notification_event_dispatcher_impl.cc
6 years ago (2014-12-10 00:41:16 UTC) #4
dewittj
hm, not showing up in code search or http://git.chromium.org/gitweb/?p=chromium/src.git;a=tree;f=content/browser;h=fb5cffafe3b2e12366238f5fa66fc223679c3d31;hb=HEAD is it not yet landed?
6 years ago (2014-12-10 01:01:31 UTC) #5
Peter Beverloo
Justin: PTAL. I added both unit tests and browser tests to this CL, and amended ...
6 years ago (2014-12-10 22:00:17 UTC) #7
Peter Beverloo
To clarify, this CL depends on: https://codereview.chromium.org/787193002/ (moving logic to PNS) https://codereview.chromium.org/787893002/ (hook up the ...
6 years ago (2014-12-10 22:01:57 UTC) #8
Michael van Ouwerkerk
lgtm but it would be good to address at least some of these nits and ...
6 years ago (2014-12-11 16:41:55 UTC) #9
dewittj
https://codereview.chromium.org/784383002/diff/40001/chrome/browser/notifications/persistent_notification_delegate.cc File chrome/browser/notifications/persistent_notification_delegate.cc (right): https://codereview.chromium.org/784383002/diff/40001/chrome/browser/notifications/persistent_notification_delegate.cc#newcode27 chrome/browser/notifications/persistent_notification_delegate.cc:27: id_(base::GenerateGUID()) {} If I read this correctly, one of ...
6 years ago (2014-12-11 17:18:50 UTC) #10
Peter Beverloo
Thanks for the comments! PTAL https://codereview.chromium.org/784383002/diff/40001/chrome/browser/notifications/persistent_notification_delegate.cc File chrome/browser/notifications/persistent_notification_delegate.cc (right): https://codereview.chromium.org/784383002/diff/40001/chrome/browser/notifications/persistent_notification_delegate.cc#newcode27 chrome/browser/notifications/persistent_notification_delegate.cc:27: id_(base::GenerateGUID()) {} On 2014/12/11 ...
6 years ago (2014-12-11 19:02:00 UTC) #11
Michael van Ouwerkerk
still lgtm, thanks for the changes https://codereview.chromium.org/784383002/diff/40001/chrome/test/data/notifications/platform_notification_service.html File chrome/test/data/notifications/platform_notification_service.html (right): https://codereview.chromium.org/784383002/diff/40001/chrome/test/data/notifications/platform_notification_service.html#newcode69 chrome/test/data/notifications/platform_notification_service.html:69: GetActivatedServiceWorker('platform_notification_service.js', On 2014/12/11 ...
6 years ago (2014-12-11 20:01:19 UTC) #12
dewittj
okay, thanks for the explanation. lgtm
6 years ago (2014-12-11 20:53:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784383002/60001
6 years ago (2014-12-13 16:17:39 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/41817) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/7157) ios_dbg_simulator ...
6 years ago (2014-12-13 16:20:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784383002/80001
6 years ago (2014-12-15 14:07:31 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/30458)
6 years ago (2014-12-15 14:15:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/784383002/100001
6 years ago (2014-12-15 14:34:00 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-15 15:31:02 UTC) #24
commit-bot: I haz the power
6 years ago (2014-12-15 15:32:44 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/eb322fc9a5882550d2a34b04954a5b3f9f8e63f9
Cr-Commit-Position: refs/heads/master@{#308353}

Powered by Google App Engine
This is Rietveld 408576698