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

Issue 1026853002: Integrate the notification database with the normal code path. (Closed)

Created:
5 years, 9 months ago by Peter Beverloo
Modified:
5 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@n-db-ConfirmShow
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Integrate the notification database with the normal code path. This patch actually integrates the Web Notification database with the existing code paths, which means that it will be used for any persistent notification being shown from this patch forward. The database is completely tested with a series of unit tests, whereas all existing browser tests, layout tests and instrumentation tests will continue to exercise the full flows. Please mind that this is the first part in a series. I realize that there's a fair amount of TODOs in the code. Resolving these takes larger refactorings (in case of reducing PlatformNotificationService knowledge) or three-sided patches (in case of the Blink API). These will be addressed in follow-ups. Design document: http://goo.gl/TciXVp BUG=447628 Committed: https://crrev.com/2ee1f3c08f9d1e46bdeb42dc8435dd30d81f0ae6 Cr-Commit-Position: refs/heads/master@{#325232}

Patch Set 1 : #

Patch Set 2 : fix the unit_tests #

Patch Set 3 : fix layout tests #

Total comments: 7

Patch Set 4 : #

Total comments: 26

Patch Set 5 : android part #

Total comments: 24

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : delete a now invalid test #

Total comments: 4

Patch Set 10 : #

Total comments: 4

Patch Set 11 : comments #

Patch Set 12 : y #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -394 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java View 1 2 3 4 5 6 1 chunk +11 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationService.java View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java View 1 2 3 4 5 6 10 chunks +80 lines, -43 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -23 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 2 3 4 5 6 7 7 chunks +45 lines, -181 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.h View 1 2 3 3 chunks +8 lines, -12 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.cc View 5 6 7 2 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 4 5 6 7 4 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +30 lines, -13 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -3 lines 0 comments Download
M content/browser/notifications/notification_event_dispatcher_impl.h View 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/notifications/notification_event_dispatcher_impl.cc View 5 chunks +57 lines, -21 lines 0 comments Download
M content/browser/notifications/notification_message_filter.h View 1 2 3 4 5 chunks +32 lines, -1 line 0 comments Download
M content/browser/notifications/notification_message_filter.cc View 1 2 3 4 5 chunks +108 lines, -35 lines 0 comments Download
M content/child/notifications/notification_manager.cc View 1 2 3 4 2 chunks +16 lines, -2 lines 0 comments Download
M content/common/platform_notification_messages.h View 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/notification_event_dispatcher.h View 2 chunks +4 lines, -5 lines 0 comments Download
M content/public/browser/platform_notification_service.h View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M content/public/common/persistent_notification_status.h View 1 chunk +5 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 2 4 chunks +5 lines, -9 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 2 4 chunks +4 lines, -12 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
Peter Beverloo
+dewittj, johnme Hi guys - I'd very much appreciate a review of this code. There's ...
5 years, 8 months ago (2015-03-31 19:15:53 UTC) #4
Peter Beverloo
Actually, I'd expect the //content API changes to be stable for this patch - let ...
5 years, 8 months ago (2015-03-31 19:25:42 UTC) #6
dewittj
FYI I'm out of office till Monday. Justin On Tue, Mar 31, 2015, 12:25 <peter@chromium.org> ...
5 years, 8 months ago (2015-03-31 19:46:40 UTC) #7
Avi (use Gerrit)
You have my content LGTM stamp; get a review from an area expert. https://codereview.chromium.org/1026853002/diff/80001/chrome/browser/notifications/persistent_notification_delegate.h File ...
5 years, 8 months ago (2015-03-31 20:36:21 UTC) #8
Mike West
IPC LGTM.
5 years, 8 months ago (2015-04-01 10:02:53 UTC) #9
johnme
https://codereview.chromium.org/1026853002/diff/80001/chrome/browser/notifications/persistent_notification_delegate.h File chrome/browser/notifications/persistent_notification_delegate.h (right): https://codereview.chromium.org/1026853002/diff/80001/chrome/browser/notifications/persistent_notification_delegate.h#newcode28 chrome/browser/notifications/persistent_notification_delegate.h:28: int64 persistent_notification_id() const { What's the relation between this ...
5 years, 8 months ago (2015-04-01 17:39:37 UTC) #10
Peter Beverloo
https://codereview.chromium.org/1026853002/diff/80001/chrome/browser/notifications/persistent_notification_delegate.h File chrome/browser/notifications/persistent_notification_delegate.h (right): https://codereview.chromium.org/1026853002/diff/80001/chrome/browser/notifications/persistent_notification_delegate.h#newcode28 chrome/browser/notifications/persistent_notification_delegate.h:28: int64 persistent_notification_id() const { On 2015/03/31 20:36:21, Avi wrote: ...
5 years, 8 months ago (2015-04-01 18:32:17 UTC) #11
johnme
https://codereview.chromium.org/1026853002/diff/100001/chrome/browser/notifications/platform_notification_service_impl.cc File chrome/browser/notifications/platform_notification_service_impl.cc (right): https://codereview.chromium.org/1026853002/diff/100001/chrome/browser/notifications/platform_notification_service_impl.cc#newcode253 chrome/browser/notifications/platform_notification_service_impl.cc:253: DLOG(ERROR) << "Implement Android behavior"; Did this use to ...
5 years, 8 months ago (2015-04-02 17:21:07 UTC) #12
Peter Beverloo
Thank you for the thorough review, John! The Android part is now included. Please take ...
5 years, 8 months ago (2015-04-07 17:46:11 UTC) #13
johnme
https://codereview.chromium.org/1026853002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java (right): https://codereview.chromium.org/1026853002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java#newcode22 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java:22: public static final String EXTRA_NOTIFICATION_TAG = "notification_tag"; The comment ...
5 years, 8 months ago (2015-04-08 17:33:32 UTC) #14
Peter Beverloo
https://codereview.chromium.org/1026853002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java (right): https://codereview.chromium.org/1026853002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java#newcode22 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java:22: public static final String EXTRA_NOTIFICATION_TAG = "notification_tag"; On 2015/04/08 ...
5 years, 8 months ago (2015-04-08 18:57:48 UTC) #15
johnme
notifications lgtm once you use a different intent extras key for non-platform tag. I look ...
5 years, 8 months ago (2015-04-09 10:06:11 UTC) #16
Peter Beverloo
https://codereview.chromium.org/1026853002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java (right): https://codereview.chromium.org/1026853002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java#newcode22 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java:22: public static final String EXTRA_NOTIFICATION_TAG = "notification_tag"; On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 13:09:00 UTC) #17
dewittj
This patch seems okay to me with the following caveats: * It looks like a ...
5 years, 8 months ago (2015-04-10 17:02:19 UTC) #18
Peter Beverloo
Thanks for your review! Please take a look at my answers and update. > * ...
5 years, 8 months ago (2015-04-13 16:22:32 UTC) #19
dewittj
lgtm with a few more documentation nits https://codereview.chromium.org/1026853002/diff/220001/chrome/browser/notifications/notification_ui_manager_android.h File chrome/browser/notifications/notification_ui_manager_android.h (right): https://codereview.chromium.org/1026853002/diff/220001/chrome/browser/notifications/notification_ui_manager_android.h#newcode52 chrome/browser/notifications/notification_ui_manager_android.h:52: void CancelAll() ...
5 years, 8 months ago (2015-04-13 18:58:53 UTC) #20
Peter Beverloo
https://codereview.chromium.org/1026853002/diff/220001/chrome/browser/notifications/notification_ui_manager_android.h File chrome/browser/notifications/notification_ui_manager_android.h (right): https://codereview.chromium.org/1026853002/diff/220001/chrome/browser/notifications/notification_ui_manager_android.h#newcode52 chrome/browser/notifications/notification_ui_manager_android.h:52: void CancelAll() override; On 2015/04/13 18:58:53, dewittj wrote: > ...
5 years, 8 months ago (2015-04-14 14:09:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1026853002/260001
5 years, 8 months ago (2015-04-14 17:50:11 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/66618)
5 years, 8 months ago (2015-04-14 19:03:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1026853002/280001
5 years, 8 months ago (2015-04-15 11:36:44 UTC) #29
commit-bot: I haz the power
Committed patchset #13 (id:280001)
5 years, 8 months ago (2015-04-15 13:09:24 UTC) #30
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 13:10:31 UTC) #31
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/2ee1f3c08f9d1e46bdeb42dc8435dd30d81f0ae6
Cr-Commit-Position: refs/heads/master@{#325232}

Powered by Google App Engine
This is Rietveld 408576698