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

Issue 1127013008: Beginnings of synchronizing notifications in the notification database. (Closed)

Created:
5 years, 7 months ago by Peter Beverloo
Modified:
5 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, wjmaclean, mlamouri+watch-notifications_chromium.org, jam, darin-cc_chromium.org, peter+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Beginnings of synchronizing notifications in the notification database. For both desktop Chrome and Android we need to support a mechanism for synchronizing open notifications. For desktop the most important case is where Chrome just started up, where there won't be any notifications since the message center is owned by Chrome. For Android, there are more cases, since the platform hosts displaying the notifications and informs Chrome through Intents of mutations. This patch leaves synchronization there mostly out of scope, while still laying the early groundwork towards supporting this. BUG=442143 Committed: https://crrev.com/5b494b3b5f13d6a89afead81e3081a298e10b23b Cr-Commit-Position: refs/heads/master@{#330583}

Patch Set 1 #

Patch Set 2 : #

Total comments: 21

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : y #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -9 lines) Patch
M chrome/browser/notifications/message_center_notification_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 1 chunk +20 lines, -5 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_desktop.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/notifications/platform_notification_context_impl.h View 1 4 chunks +8 lines, -0 lines 0 comments Download
M content/browser/notifications/platform_notification_context_impl.cc View 1 2 3 4 5 4 chunks +41 lines, -0 lines 0 comments Download
M content/browser/notifications/platform_notification_context_unittest.cc View 1 2 6 chunks +12 lines, -2 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/platform_notification_service.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Peter Beverloo
+johnme for review
5 years, 7 months ago (2015-05-14 14:27:16 UTC) #2
johnme
https://codereview.chromium.org/1127013008/diff/20001/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/1127013008/diff/20001/chrome/browser/notifications/message_center_notification_manager.cc#newcode240 chrome/browser/notifications/message_center_notification_manager.cc:240: for (const auto& iter : profile_notifications_) { s/iter/entry/ or ...
5 years, 7 months ago (2015-05-14 15:22:33 UTC) #3
Peter Beverloo
All done! Thanks for the review! https://codereview.chromium.org/1127013008/diff/20001/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/1127013008/diff/20001/chrome/browser/notifications/message_center_notification_manager.cc#newcode240 chrome/browser/notifications/message_center_notification_manager.cc:240: for (const auto& ...
5 years, 7 months ago (2015-05-14 16:03:35 UTC) #4
johnme
lgtm with error handling https://codereview.chromium.org/1127013008/diff/20001/content/browser/notifications/platform_notification_context_impl.cc File content/browser/notifications/platform_notification_context_impl.cc (right): https://codereview.chromium.org/1127013008/diff/20001/content/browser/notifications/platform_notification_context_impl.cc#newcode356 content/browser/notifications/platform_notification_context_impl.cc:356: DestroyDatabase(); On 2015/05/14 16:03:35, Peter ...
5 years, 7 months ago (2015-05-14 16:40:51 UTC) #5
Peter Beverloo
On 2015/05/14 16:40:51, johnme wrote: > lgtm with error handling > > https://codereview.chromium.org/1127013008/diff/20001/content/browser/notifications/platform_notification_context_impl.cc > File ...
5 years, 7 months ago (2015-05-14 17:45:16 UTC) #6
Peter Beverloo
+avi for content/
5 years, 7 months ago (2015-05-14 17:56:23 UTC) #8
Avi (use Gerrit)
lgtm
5 years, 7 months ago (2015-05-14 19:55:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127013008/100001
5 years, 7 months ago (2015-05-19 17:56:25 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 7 months ago (2015-05-19 19:35:26 UTC) #13
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 19:36:14 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5b494b3b5f13d6a89afead81e3081a298e10b23b
Cr-Commit-Position: refs/heads/master@{#330583}

Powered by Google App Engine
This is Rietveld 408576698