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

Issue 2749453002: Make GetDisplayedNotifications asynchronous. (Closed)

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

Description

Make GetDisplayedNotifications asynchronous. BUG=571056 Review-Url: https://codereview.chromium.org/2749453002 Cr-Commit-Position: refs/heads/master@{#458071} Committed: https://chromium.googlesource.com/chromium/src/+/bfe768358163d78edf9b3a48bef284427fb4d380

Patch Set 1 #

Patch Set 2 : Fix LayoutTests and Android #

Patch Set 3 : android #

Patch Set 4 : typo #

Patch Set 5 : Post all callbacks in the UI thread #

Patch Set 6 : - #

Total comments: 43

Patch Set 7 : Peter's review #

Patch Set 8 : revert early bailout if there is no service #

Total comments: 12

Patch Set 9 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -151 lines) Patch
M chrome/browser/notifications/message_center_display_service.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/message_center_display_service.cc View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -8 lines 0 comments Download
M chrome/browser/notifications/native_notification_display_service.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/native_notification_display_service.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification_display_service.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.h View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac.h View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac.mm View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm View 1 2 3 4 5 6 7 8 6 chunks +27 lines, -8 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -8 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/notifications/stub_notification_platform_bridge.h View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/notifications/stub_notification_platform_bridge.cc View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_delivery.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/notifications/platform_notification_context_impl.h View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -6 lines 0 comments Download
M content/browser/notifications/platform_notification_context_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +70 lines, -41 lines 0 comments Download
M content/public/browser/platform_notification_service.h View 1 2 3 4 5 6 2 chunks +8 lines, -5 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -15 lines 0 comments Download
M content/test/mock_platform_notification_service.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/mock_platform_notification_service.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 44 (33 generated)
Miguel Garcia
3 years, 9 months ago (2017-03-15 14:01:18 UTC) #20
Miguel Garcia
I went with your suggestion to "reverse" https://codereview.chromium.org/2709213005/ so this essentially makes the GetDisplayed call ...
3 years, 9 months ago (2017-03-15 14:02:26 UTC) #21
Peter Beverloo
Largely trivial nits, sorry https://codereview.chromium.org/2749453002/diff/100001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://codereview.chromium.org/2749453002/diff/100001/chrome/browser/notifications/message_center_display_service.cc#newcode39 chrome/browser/notifications/message_center_display_service.cc:39: base::MakeUnique<std::set<std::string>>(); note: I think `auto` ...
3 years, 9 months ago (2017-03-15 18:07:51 UTC) #22
Miguel Garcia
https://codereview.chromium.org/2749453002/diff/100001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://codereview.chromium.org/2749453002/diff/100001/chrome/browser/notifications/message_center_display_service.cc#newcode39 chrome/browser/notifications/message_center_display_service.cc:39: base::MakeUnique<std::set<std::string>>(); On 2017/03/15 18:07:50, Peter Beverloo wrote: > note: ...
3 years, 9 months ago (2017-03-16 14:57:43 UTC) #25
Miguel Garcia
https://codereview.chromium.org/2749453002/diff/100001/content/browser/notifications/platform_notification_context_impl.cc File content/browser/notifications/platform_notification_context_impl.cc (right): https://codereview.chromium.org/2749453002/diff/100001/content/browser/notifications/platform_notification_context_impl.cc#newcode60 content/browser/notifications/platform_notification_context_impl.cc:60: if (!service) { On 2017/03/16 14:57:42, Miguel Garcia wrote: ...
3 years, 9 months ago (2017-03-16 15:57:25 UTC) #31
Peter Beverloo
lgtm % comments https://codereview.chromium.org/2749453002/diff/160001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://codereview.chromium.org/2749453002/diff/160001/chrome/browser/notifications/message_center_display_service.cc#newcode42 chrome/browser/notifications/message_center_display_service.cc:42: } Sorry that I missed this ...
3 years, 9 months ago (2017-03-17 15:46:04 UTC) #34
Miguel Garcia
+avi for the content/public and content/test changes
3 years, 9 months ago (2017-03-17 15:57:16 UTC) #36
Avi (use Gerrit)
lgtm
3 years, 9 months ago (2017-03-17 16:34:06 UTC) #37
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/2749453002/180001
3 years, 9 months ago (2017-03-20 14:11:21 UTC) #40
Miguel Garcia
https://codereview.chromium.org/2749453002/diff/160001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://codereview.chromium.org/2749453002/diff/160001/chrome/browser/notifications/message_center_display_service.cc#newcode42 chrome/browser/notifications/message_center_display_service.cc:42: } On 2017/03/17 15:46:04, Peter Beverloo wrote: > Sorry ...
3 years, 9 months ago (2017-03-20 14:11:21 UTC) #41
commit-bot: I haz the power
3 years, 9 months ago (2017-03-20 15:35:24 UTC) #44
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/bfe768358163d78edf9b3a48bef2...

Powered by Google App Engine
This is Rietveld 408576698