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

Issue 1072043003: Clean up the NotificationUIManagerAndroid. (Closed)

Created:
5 years, 8 months ago by Peter Beverloo
Modified:
5 years, 8 months ago
Reviewers:
johnme, dewittj
CC:
chromium-reviews, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@n-db-Integrate
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up the NotificationUIManagerAndroid. When this class was introduced, it served the needs for non-persistent Web Notifications (and other kinds of notifications), with the knowledge that it wouldn't be able to reliably provide many of the API methods defined in the NotificationUIManager interface. That was OK. Today, we only ship persistent Web Notifications, which can outlive the browser process, and don't use the NotificationUIManagerAndroid for any other purpose. However, the code to support other kinds of notifications is still more or less in place, with no tests or users. It's broken. Therefore we remove it. This CL also removes a test that doesn't make sense anymore, since this stops us from double-closing notifications. BUG= Committed: https://crrev.com/4b8f24f0f29941118c12ade3156de721e5c2c496 Cr-Commit-Position: refs/heads/master@{#325273}

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 2

Patch Set 3 : NOTIMPLEMENTED -> NOTREACHED #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -220 lines) Patch
M chrome/browser/notifications/notification_ui_manager_android.h View 1 2 3 chunks +13 lines, -31 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 2 6 chunks +38 lines, -172 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.cc View 2 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Peter Beverloo
+johnme and dewittj for review This is the first follow-up to the integration patch. https://codereview.chromium.org/1026853002/
5 years, 8 months ago (2015-04-09 15:24:07 UTC) #2
johnme
Woohoo! https://codereview.chromium.org/1072043003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java (left): https://codereview.chromium.org/1072043003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java#oldcode242 chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java:242: public void testNotificationDeleteIntentClosesNotification() throws Exception { I don't ...
5 years, 8 months ago (2015-04-09 17:00:02 UTC) #3
Peter Beverloo
Thanks for the review! https://codereview.chromium.org/1072043003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java (left): https://codereview.chromium.org/1072043003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java#oldcode242 chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java:242: public void testNotificationDeleteIntentClosesNotification() throws Exception ...
5 years, 8 months ago (2015-04-09 17:34:42 UTC) #4
johnme
notifications lgtm https://codereview.chromium.org/1072043003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc File chrome/browser/notifications/notification_ui_manager_android.cc (right): https://codereview.chromium.org/1072043003/diff/1/chrome/browser/notifications/notification_ui_manager_android.cc#newcode185 chrome/browser/notifications/notification_ui_manager_android.cc:185: NOTIMPLEMENTED(); On 2015/04/09 17:34:42, Peter Beverloo wrote: ...
5 years, 8 months ago (2015-04-10 11:37:47 UTC) #5
dewittj
lgtm https://codereview.chromium.org/1072043003/diff/20001/chrome/browser/notifications/notification_ui_manager_android.cc File chrome/browser/notifications/notification_ui_manager_android.cc (right): https://codereview.chromium.org/1072043003/diff/20001/chrome/browser/notifications/notification_ui_manager_android.cc#newcode188 chrome/browser/notifications/notification_ui_manager_android.cc:188: NOTIMPLEMENTED(); I wonder if we should be harsher ...
5 years, 8 months ago (2015-04-10 17:06:59 UTC) #6
Peter Beverloo
https://codereview.chromium.org/1072043003/diff/20001/chrome/browser/notifications/notification_ui_manager_android.cc File chrome/browser/notifications/notification_ui_manager_android.cc (right): https://codereview.chromium.org/1072043003/diff/20001/chrome/browser/notifications/notification_ui_manager_android.cc#newcode188 chrome/browser/notifications/notification_ui_manager_android.cc:188: NOTIMPLEMENTED(); On 2015/04/10 17:06:59, dewittj wrote: > I wonder ...
5 years, 8 months ago (2015-04-14 17:53:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072043003/60001
5 years, 8 months ago (2015-04-15 17:03:01 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-15 17:57:40 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 17:58:44 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4b8f24f0f29941118c12ade3156de721e5c2c496
Cr-Commit-Position: refs/heads/master@{#325273}

Powered by Google App Engine
This is Rietveld 408576698