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

Issue 826883003: Android Notifications should be closable without a delegate. (Closed)

Created:
5 years, 11 months ago by Peter Beverloo
Modified:
5 years, 11 months ago
CC:
chromium-reviews, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@a-serialize-pickle
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android Notifications should be closable without a delegate. When the browser process is started in response to a user interaction with a Web Notification on Android, there may not be a delegate for the given notification, which means that it cannot currently be closed. In order to solve this, make sure the platform Id of a notification is stored when the clicked on notification is not known to the browser process yet (and thus was created by a previous session). BUG=90795 Committed: https://crrev.com/69c51b0258bac059f652b271ac5b86daca8e05c2 Cr-Commit-Position: refs/heads/master@{#310787}

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -19 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java View 1 2 4 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 2 6 chunks +19 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Peter Beverloo
This patch depends on https://codereview.chromium.org/839533004/. Tomorrow is test day. I promise. :-)
5 years, 11 months ago (2015-01-07 18:50:53 UTC) #2
Michael van Ouwerkerk
lgtm https://codereview.chromium.org/826883003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java (right): https://codereview.chromium.org/826883003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java#newcode129 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java:129: || !intent.hasExtra(NotificationConstants.EXTRA_NOTIFICATION_PLATFORM_ID)) { indent seems unusual
5 years, 11 months ago (2015-01-07 19:02:30 UTC) #3
dewittj
https://codereview.chromium.org/826883003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc File chrome/browser/notifications/notification_ui_manager_android.cc (right): https://codereview.chromium.org/826883003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc#newcode320 chrome/browser/notifications/notification_ui_manager_android.cc:320: if (platform_id_iter == platform_notifications_.end()) Can this code be consolidated ...
5 years, 11 months ago (2015-01-08 01:06:17 UTC) #4
Peter Beverloo
https://codereview.chromium.org/826883003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java (right): https://codereview.chromium.org/826883003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java#newcode129 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java:129: || !intent.hasExtra(NotificationConstants.EXTRA_NOTIFICATION_PLATFORM_ID)) { On 2015/01/07 19:02:30, Michael van Ouwerkerk ...
5 years, 11 months ago (2015-01-08 19:28:19 UTC) #5
dewittj
lgtm
5 years, 11 months ago (2015-01-08 21:54:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/826883003/40001
5 years, 11 months ago (2015-01-09 16:15:03 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-09 17:12:45 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 17:14:36 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/69c51b0258bac059f652b271ac5b86daca8e05c2
Cr-Commit-Position: refs/heads/master@{#310787}

Powered by Google App Engine
This is Rietveld 408576698