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

Issue 2616893003: Hide notifications after their deadline (Closed)

Created:
3 years, 11 months ago by sfiera
Modified:
3 years, 11 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hide notifications after their deadline Right now, this code will hide the notification at the end of the timeout, even we switched to showing a different article in the notification in the meantime. Fixing that will mean switching to different tags for different articles. Notifications should also implicitly be hidden if the articles themselves expire, since the notifier service will watch for their removal. BUG=675561 Review-Url: https://codereview.chromium.org/2616893003 Cr-Commit-Position: refs/heads/master@{#442010} Committed: https://chromium.googlesource.com/chromium/src/+/5a568c2ca3041b4b2b1975508c75d7e95df2a131

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase #

Patch Set 3 : Use getActiveNotifications() #

Total comments: 2

Patch Set 4 : Add M annotation #

Patch Set 5 : rebase #

Patch Set 6 : b -c dismissal #

Patch Set 7 : import annotation #

Messages

Total messages: 26 (19 generated)
sfiera
Would it be OK to use the URL of the article as the notification tag, ...
3 years, 11 months ago (2017-01-05 16:30:02 UTC) #4
Bernhard Bauer
On 2017/01/05 16:30:02, sfiera wrote: > Would it be OK to use the URL of ...
3 years, 11 months ago (2017-01-05 17:14:54 UTC) #7
sfiera
On 2017/01/05 17:14:54, Bernhard Bauer wrote: > On 2017/01/05 16:30:02, sfiera wrote: > > Would ...
3 years, 11 months ago (2017-01-05 22:55:04 UTC) #12
Bernhard Bauer
LGTM with lint warnings fixed: https://codereview.chromium.org/2616893003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java (right): https://codereview.chromium.org/2616893003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java#newcode34 chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java:34: private static final String ...
3 years, 11 months ago (2017-01-06 13:32:56 UTC) #13
sfiera
https://codereview.chromium.org/2616893003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java (right): https://codereview.chromium.org/2616893003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java#newcode74 chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java:74: for (StatusBarNotification activeNotification : manager.getActiveNotifications()) { On 2017/01/06 13:32:56, ...
3 years, 11 months ago (2017-01-06 17:44:20 UTC) #15
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/2616893003/120001
3 years, 11 months ago (2017-01-06 19:31:28 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 19:40:20 UTC) #26
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/5a568c2ca3041b4b2b1975508c75...

Powered by Google App Engine
This is Rietveld 408576698