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

Issue 2402303002: Implement the ability to close alerts programatically (Closed)

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

Description

Implement the ability to close alerts programatically. BUG=571056 Committed: https://crrev.com/470c5e56f7afdfa2552babe34b484c2808bfa1ef Cr-Commit-Position: refs/heads/master@{#425559}

Patch Set 1 #

Total comments: 7

Patch Set 2 : review #

Total comments: 2

Patch Set 3 : review #

Patch Set 4 : break early if the notification to close is found #

Total comments: 4

Patch Set 5 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -2 lines) Patch
M chrome/browser/notifications/notification_platform_bridge_mac.mm View 1 2 3 4 5 chunks +34 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/alert_notification_service.mm View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_delivery.h View 1 1 chunk +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (7 generated)
Miguel Garcia
4 years, 2 months ago (2016-10-10 09:39:21 UTC) #3
Robert Sesek
https://codereview.chromium.org/2402303002/diff/20001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2402303002/diff/20001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode434 chrome/browser/notifications/notification_platform_bridge_mac.mm:434: alertsDisplayed_.reset([[NSMutableSet alloc] init]); What is the purpose of this ...
4 years, 2 months ago (2016-10-10 18:22:47 UTC) #5
Miguel Garcia
https://chromiumcodereview.appspot.com/2402303002/diff/20001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://chromiumcodereview.appspot.com/2402303002/diff/20001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode434 chrome/browser/notifications/notification_platform_bridge_mac.mm:434: alertsDisplayed_.reset([[NSMutableSet alloc] init]); On 2016/10/10 18:22:47, Robert Sesek wrote: ...
4 years, 2 months ago (2016-10-11 11:55:41 UTC) #6
Peter Beverloo
https://codereview.chromium.org/2402303002/diff/40001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2402303002/diff/40001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode430 chrome/browser/notifications/notification_platform_bridge_mac.mm:430: base::scoped_nsobject<NSMutableSet> alertsDisplayed_; Instead of caching which alerts we still ...
4 years, 2 months ago (2016-10-11 14:37:49 UTC) #7
Miguel Garcia
On 2016/10/11 14:37:49, Peter Beverloo wrote: > https://codereview.chromium.org/2402303002/diff/40001/chrome/browser/notifications/notification_platform_bridge_mac.mm > File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): > > https://codereview.chromium.org/2402303002/diff/40001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode430 ...
4 years, 2 months ago (2016-10-11 14:41:08 UTC) #8
Peter Beverloo
On 2016/10/11 14:41:08, Miguel Garcia wrote: > On 2016/10/11 14:37:49, Peter Beverloo wrote: > > ...
4 years, 2 months ago (2016-10-11 14:46:38 UTC) #9
Robert Sesek
On 2016/10/11 14:46:38, Peter Beverloo wrote: > On 2016/10/11 14:41:08, Miguel Garcia wrote: > > ...
4 years, 2 months ago (2016-10-11 15:25:41 UTC) #10
Miguel Garcia
Yes, the fact that we will be issuing close requests to the wrong process every ...
4 years, 2 months ago (2016-10-11 15:27:14 UTC) #11
Miguel Garcia
On 2016/10/11 15:25:41, Robert Sesek wrote: > On 2016/10/11 14:46:38, Peter Beverloo wrote: > > ...
4 years, 2 months ago (2016-10-11 15:28:15 UTC) #12
Robert Sesek
https://codereview.chromium.org/2402303002/diff/20001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2402303002/diff/20001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode434 chrome/browser/notifications/notification_platform_bridge_mac.mm:434: alertsDisplayed_.reset([[NSMutableSet alloc] init]); On 2016/10/11 11:55:41, Miguel Garcia wrote: ...
4 years, 2 months ago (2016-10-11 15:28:41 UTC) #13
Miguel Garcia
> That is certainly concerning? That was meant to be a statement (no ?) not ...
4 years, 2 months ago (2016-10-11 15:28:46 UTC) #14
Robert Sesek
On 2016/10/11 15:28:15, Miguel Garcia wrote: > On 2016/10/11 15:25:41, Robert Sesek wrote: > > ...
4 years, 2 months ago (2016-10-11 15:29:27 UTC) #15
Miguel Garcia
Ok cache removed. PTAL https://codereview.chromium.org/2402303002/diff/40001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2402303002/diff/40001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode430 chrome/browser/notifications/notification_platform_bridge_mac.mm:430: base::scoped_nsobject<NSMutableSet> alertsDisplayed_; Given you both ...
4 years, 2 months ago (2016-10-12 11:30:21 UTC) #16
Peter Beverloo
lgtm - are tests blocked on the swizzling CL? https://codereview.chromium.org/2402303002/diff/80001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2402303002/diff/80001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode429 chrome/browser/notifications/notification_platform_bridge_mac.mm:429: ...
4 years, 2 months ago (2016-10-12 12:20:39 UTC) #17
Miguel Garcia
Yes, once that one lands in whatever form we decide I'll increase coverage for clicks/close... ...
4 years, 2 months ago (2016-10-12 12:51:11 UTC) #18
Robert Sesek
LGTM w/ Peter's comment addressed too https://codereview.chromium.org/2402303002/diff/80001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2402303002/diff/80001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode112 chrome/browser/notifications/notification_platform_bridge_mac.mm:112: nit: remove extra ...
4 years, 2 months ago (2016-10-12 15:37:37 UTC) #19
Miguel Garcia
https://codereview.chromium.org/2402303002/diff/80001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2402303002/diff/80001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode112 chrome/browser/notifications/notification_platform_bridge_mac.mm:112: On 2016/10/12 15:37:36, Robert Sesek wrote: > nit: remove ...
4 years, 2 months ago (2016-10-15 09:48:49 UTC) #20
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/2402303002/100001
4 years, 2 months ago (2016-10-15 09:49:21 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 2 months ago (2016-10-15 10:14:04 UTC) #25
commit-bot: I haz the power
4 years, 2 months ago (2016-10-15 10:16:39 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/470c5e56f7afdfa2552babe34b484c2808bfa1ef
Cr-Commit-Position: refs/heads/master@{#425559}

Powered by Google App Engine
This is Rietveld 408576698