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

Issue 2151993002: [WebAPKs] Plumb service worker scope to notifications (Closed)

Created:
4 years, 5 months ago by pkotwicz
Modified:
4 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, jam, darin-cc_chromium.org, harkness+watch_chromium.org, johnme+watch_chromium.org, jochen+watch_chromium.org, Yaron, Xi Han
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL plumbs the service worker scope to PlatformNotificationServiceImpl::DisplayPersistentNotification() The service worker scope is used to determine whether the notification should be displayed using a WebAPK as the source or using Chrome as the source. On Android, the notification source is displayed when a user long-presses on a notification. A WebAPK is used as the source of the notification if the "service worker scope" falls within the "WebAPK scope". The "WebAPK scope" is determined by the "scope" attribute in the WebAPK's Web Manifest (http://html5doctor.com/web-manifest-specification/) BUG=627842 TEST=PlatformNotificationServiceBrowserTest.PersistentNotificationServiceWorkerScope Committed: https://crrev.com/1f71208bc7377d187085071782ca34c6de8e2c1e Cr-Commit-Position: refs/heads/master@{#406570}

Patch Set 1 : Merge branch 'master' into notification_scope #

Total comments: 7

Patch Set 2 : Merge branch 'master' into notification_scope #

Total comments: 7

Patch Set 3 : Merge branch 'master' into notification_scope #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -31 lines) Patch
M chrome/browser/notifications/notification.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.cc View 1 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 5 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_interactive_uitest.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 5 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_notification_manager.cc View 1 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/notifications/notification_message_filter.h View 1 2 5 chunks +18 lines, -0 lines 0 comments Download
M content/browser/notifications/notification_message_filter.cc View 1 2 4 chunks +48 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M content/public/browser/platform_notification_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (11 generated)
pkotwicz
Peter Beverloo can you please take a look? This is an initial CL. I do ...
4 years, 5 months ago (2016-07-14 19:32:51 UTC) #4
Peter Beverloo
https://codereview.chromium.org/2151993002/diff/20001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/2151993002/diff/20001/chrome/browser/DEPS#newcode15 chrome/browser/DEPS:15: "+content/common/service_worker", On 2016/07/14 19:32:50, pkotwicz wrote: > I suspect ...
4 years, 5 months ago (2016-07-15 13:40:11 UTC) #5
pkotwicz
Peter Beverloo can you please take a look? I think that I have addressed all ...
4 years, 5 months ago (2016-07-15 19:48:45 UTC) #8
Peter Beverloo
lgtm https://codereview.chromium.org/2151993002/diff/60001/chrome/browser/notifications/notification.h File chrome/browser/notifications/notification.h (right): https://codereview.chromium.org/2151993002/diff/60001/chrome/browser/notifications/notification.h#newcode61 chrome/browser/notifications/notification.h:61: // worker. nit: maybe specify that it's used ...
4 years, 5 months ago (2016-07-19 14:17:17 UTC) #9
pkotwicz
sievers@ can you please take a look at the changes in content/ that peter@ is ...
4 years, 5 months ago (2016-07-19 21:56:22 UTC) #12
no sievers
On 2016/07/19 21:56:22, pkotwicz wrote: > sievers@ can you please take a look at the ...
4 years, 5 months ago (2016-07-19 22:44:18 UTC) #13
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/2151993002/100001
4 years, 5 months ago (2016-07-20 14:24:41 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years, 5 months ago (2016-07-20 16:09:54 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 16:13:05 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1f71208bc7377d187085071782ca34c6de8e2c1e
Cr-Commit-Position: refs/heads/master@{#406570}

Powered by Google App Engine
This is Rietveld 408576698