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

Issue 2534443002: Use notification display service to collect persistent notifications. (Closed)

Created:
4 years ago by Miguel Garcia
Modified:
4 years ago
CC:
chromium-reviews, Peter Beverloo, jam, mlamouri+watch-notifications_chromium.org, darin-cc_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use notification display service to collect persistent notifications. - Filter out non persistent notifications on PlatformNotificationService - Fiter our notifications present in the database but not displayed In order to keep the model simple there is no syncing of the database with the new information, we stil rely on chrome restarts for that. This CL also integrates https://codereview.chromium.org/2565323004/ authored by Peter Beverloo. BUG=571056 Committed: https://crrev.com/fea8f2f0eba8a4b9e98281dd52f64a1241a96d9c Cr-Commit-Position: refs/heads/master@{#438251}

Patch Set 1 #

Patch Set 2 : add extra test checks #

Patch Set 3 : revert unit test #

Total comments: 17

Patch Set 4 : review #

Patch Set 5 : - #

Patch Set 6 : fix layout tests #

Total comments: 4

Patch Set 7 : threading #

Total comments: 6

Patch Set 8 : Review + merged Peter's suggestion #

Patch Set 9 : fix infinite loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -14 lines) Patch
M chrome/browser/notifications/notification_test_util.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_interactive_uitest.cc View 1 2 3 4 5 6 7 2 chunks +48 lines, -0 lines 0 comments Download
M chrome/test/data/notifications/platform_notification_service.html View 1 2 3 4 5 6 2 chunks +31 lines, -0 lines 0 comments Download
M content/browser/notifications/platform_notification_context_impl.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -1 line 0 comments Download
M content/browser/notifications/platform_notification_context_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +63 lines, -6 lines 0 comments Download
M content/public/browser/platform_notification_service.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 2 3 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 68 (54 generated)
Miguel Garcia
A few notes: The unit tests needs https://codereview.chromium.org/2528013002 We also have a ui test so ...
4 years ago (2016-11-24 16:55:18 UTC) #7
Miguel Garcia
I have reverted the unit test for now (since sky didn't like my idea for ...
4 years ago (2016-11-30 13:26:57 UTC) #12
Peter Beverloo
https://codereview.chromium.org/2534443002/diff/60001/chrome/browser/notifications/notification_test_util.h File chrome/browser/notifications/notification_test_util.h (right): https://codereview.chromium.org/2534443002/diff/60001/chrome/browser/notifications/notification_test_util.h#newcode55 chrome/browser/notifications/notification_test_util.h:55: // from native notification centers. s/This is...notification/centers/ --> This ...
4 years ago (2016-12-02 13:43:34 UTC) #15
Miguel Garcia
https://codereview.chromium.org/2534443002/diff/60001/chrome/browser/notifications/notification_test_util.h File chrome/browser/notifications/notification_test_util.h (right): https://codereview.chromium.org/2534443002/diff/60001/chrome/browser/notifications/notification_test_util.h#newcode55 chrome/browser/notifications/notification_test_util.h:55: // from native notification centers. On 2016/12/02 13:43:34, Peter ...
4 years ago (2016-12-06 12:01:19 UTC) #36
Peter Beverloo
Thanks! lg % threading https://codereview.chromium.org/2534443002/diff/200001/chrome/test/data/notifications/platform_notification_service.html File chrome/test/data/notifications/platform_notification_service.html (right): https://codereview.chromium.org/2534443002/diff/200001/chrome/test/data/notifications/platform_notification_service.html#newcode153 chrome/test/data/notifications/platform_notification_service.html:153: messageStack.push(notificationResult); micro nit: -2 space ...
4 years ago (2016-12-06 13:04:02 UTC) #39
Miguel Garcia
Thanks for the review. I now always called GetNotifications from the UI thread (added a ...
4 years ago (2016-12-07 17:20:50 UTC) #46
Peter Beverloo
Sorry for the delay! I failed to send comments last week :( I uploaded a ...
4 years ago (2016-12-13 11:41:12 UTC) #49
Miguel Garcia
Cool! I merged your patch as well (after reading carefully what base::Passed does) and resolved ...
4 years ago (2016-12-13 16:43:10 UTC) #53
Peter Beverloo
lgtm
4 years ago (2016-12-13 17:00:46 UTC) #57
Miguel Garcia
+avi for content/public/browser/platform_notification_service.h OWNERS
4 years ago (2016-12-13 18:09:35 UTC) #59
Avi (use Gerrit)
content public lgtm
4 years ago (2016-12-13 18:10:54 UTC) #60
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/2534443002/280001
4 years ago (2016-12-13 18:13:25 UTC) #63
commit-bot: I haz the power
Committed patchset #9 (id:280001)
4 years ago (2016-12-13 19:27:24 UTC) #66
commit-bot: I haz the power
4 years ago (2016-12-13 19:29:28 UTC) #68
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/fea8f2f0eba8a4b9e98281dd52f64a1241a96d9c
Cr-Commit-Position: refs/heads/master@{#438251}

Powered by Google App Engine
This is Rietveld 408576698