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

Issue 2709213005: [Mac] Add XPC alerts to GetDisplayedNotifications (Closed)

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

Description

Change the flow on mac so that in addition to the local banners XPC alerts are also considered. BUG=571056 Review-Url: https://codereview.chromium.org/2709213005 Cr-Commit-Position: refs/heads/master@{#462281} Committed: https://chromium.googlesource.com/chromium/src/+/76bc01769c89fd75526253472222a9854533100a

Patch Set 1 #

Patch Set 2 : - #

Total comments: 24

Patch Set 3 : Rebase after making the whole flow async in a different patch #

Total comments: 28

Patch Set 4 : review #

Total comments: 1

Patch Set 5 : review + linux support #

Total comments: 2

Patch Set 6 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -30 lines) Patch
M chrome/browser/notifications/alert_dispatcher_mac.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/browser/notifications/displayed_notifications_dispatch_callback.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge.h View 1 2 3 4 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_linux.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_linux.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac.mm View 1 2 3 4 5 chunks +54 lines, -12 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/notifications/stub_alert_dispatcher_mac.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/notifications/stub_alert_dispatcher_mac.mm View 1 2 3 4 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/notifications/stub_notification_platform_bridge.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/stub_notification_platform_bridge.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/notifications/alert_notification_service.mm View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_delivery.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_service_delegate.mm View 1 2 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 45 (25 generated)
Miguel Garcia
3 years, 10 months ago (2017-02-23 19:16:24 UTC) #7
Peter Beverloo
https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/message_center_display_service.h File chrome/browser/notifications/message_center_display_service.h (right): https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/message_center_display_service.h#newcode31 chrome/browser/notifications/message_center_display_service.h:31: void GetDisplayedAsync(const NotificationCommon::NotificationResultCallback& Did `git cl format` do this? ...
3 years, 10 months ago (2017-02-24 16:12:24 UTC) #8
Robert Sesek
https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/alert_dispatcher_mac.h File chrome/browser/notifications/alert_dispatcher_mac.h (right): https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/alert_dispatcher_mac.h#newcode26 chrome/browser/notifications/alert_dispatcher_mac.h:26: - (void)getDisplayedAlertIds:(NSString*)profileId Maybe getDisplayedAlertsForProfileId:withLocalNotifications:callback: instead (Cocoa naming is more ...
3 years, 10 months ago (2017-02-24 22:38:05 UTC) #9
Miguel Garcia
PTAL Now that the asynchronous flow has landed this just implements the mac pieces, resulting ...
3 years, 9 months ago (2017-03-22 22:00:09 UTC) #11
Miguel Garcia
PTAL Now that the asynchronous flow has landed this just implements the mac pieces, resulting ...
3 years, 9 months ago (2017-03-22 22:00:11 UTC) #12
Miguel Garcia
Now that I am back it would be great if I could get some feedback ...
3 years, 8 months ago (2017-04-03 11:48:35 UTC) #17
Peter Beverloo
Largely nits, this is very Objective C heavy. Is there any way you can add ...
3 years, 8 months ago (2017-04-03 12:33:29 UTC) #18
Robert Sesek
https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/alert_dispatcher_mac.h File chrome/browser/notifications/alert_dispatcher_mac.h (right): https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/alert_dispatcher_mac.h#newcode26 chrome/browser/notifications/alert_dispatcher_mac.h:26: - (void)getDisplayedAlertIds:(NSString*)profileId On 2017/03/22 22:00:06, Miguel Garcia wrote: > ...
3 years, 8 months ago (2017-04-03 16:51:24 UTC) #19
Miguel Garcia
https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/alert_dispatcher_mac.h File chrome/browser/notifications/alert_dispatcher_mac.h (right): https://codereview.chromium.org/2709213005/diff/40001/chrome/browser/notifications/alert_dispatcher_mac.h#newcode26 chrome/browser/notifications/alert_dispatcher_mac.h:26: - (void)getDisplayedAlertIds:(NSString*)profileId On 2017/04/03 16:51:24, Robert Sesek wrote: > ...
3 years, 8 months ago (2017-04-04 12:21:26 UTC) #24
Peter Beverloo
lg % Incognito https://codereview.chromium.org/2709213005/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2709213005/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode307 chrome/browser/notifications/notification_platform_bridge_mac.mm:307: withNotificationCenter:notification_center_ On 2017/04/04 12:21:26, Miguel Garcia ...
3 years, 8 months ago (2017-04-04 13:16:25 UTC) #25
Robert Sesek
https://codereview.chromium.org/2709213005/diff/60001/chrome/browser/notifications/alert_dispatcher_mac.h File chrome/browser/notifications/alert_dispatcher_mac.h (right): https://codereview.chromium.org/2709213005/diff/60001/chrome/browser/notifications/alert_dispatcher_mac.h#newcode15 chrome/browser/notifications/alert_dispatcher_mac.h:15: using DisplayedNotificationsCallback = On 2017/04/04 12:21:26, Miguel Garcia wrote: ...
3 years, 8 months ago (2017-04-04 15:31:48 UTC) #26
Miguel Garcia
Added support for incognito now Also agreed with Peter on a way to deal with ...
3 years, 8 months ago (2017-04-05 17:10:26 UTC) #29
Robert Sesek
LGTM https://codereview.chromium.org/2709213005/diff/100001/chrome/browser/notifications/stub_alert_dispatcher_mac.h File chrome/browser/notifications/stub_alert_dispatcher_mac.h (right): https://codereview.chromium.org/2709213005/diff/100001/chrome/browser/notifications/stub_alert_dispatcher_mac.h#newcode10 chrome/browser/notifications/stub_alert_dispatcher_mac.h:10: #include <set> Not needed in the .h
3 years, 8 months ago (2017-04-05 17:16:56 UTC) #30
Peter Beverloo
lgtm
3 years, 8 months ago (2017-04-05 18:23:00 UTC) #33
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/2709213005/120001
3 years, 8 months ago (2017-04-05 19:15:24 UTC) #36
Miguel Garcia
https://codereview.chromium.org/2709213005/diff/100001/chrome/browser/notifications/stub_alert_dispatcher_mac.h File chrome/browser/notifications/stub_alert_dispatcher_mac.h (right): https://codereview.chromium.org/2709213005/diff/100001/chrome/browser/notifications/stub_alert_dispatcher_mac.h#newcode10 chrome/browser/notifications/stub_alert_dispatcher_mac.h:10: #include <set> On 2017/04/05 17:16:54, Robert Sesek wrote: > ...
3 years, 8 months ago (2017-04-05 19:15:30 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/422793)
3 years, 8 months ago (2017-04-05 19:19:54 UTC) #39
Peter Beverloo
On 2017/04/05 19:19:54, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 8 months ago (2017-04-05 23:26:54 UTC) #40
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/2709213005/120001
3 years, 8 months ago (2017-04-05 23:27:49 UTC) #42
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 23:59:03 UTC) #45
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/76bc01769c89fd75526253472222...

Powered by Google App Engine
This is Rietveld 408576698