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

Issue 578883003: Remove the strict dependency on WebContents for Web Notifications. (Closed)

Created:
6 years, 3 months ago by Peter Beverloo
Modified:
6 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, android-webview-reviews_chromium.org, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove the strict dependency on WebContents for Web Notifications. This patch changes Notification objects created for Web Notifications to go without an associated WebContents. Because we want Web Notifications to be used from Web Workers, this no longer is a valid assumption to make. BUG=415160 Committed: https://crrev.com/b3024230575987f177b860a189551099f56ea50b Cr-Commit-Position: refs/heads/master@{#301394}

Patch Set 1 #

Total comments: 8

Patch Set 2 : comments #

Patch Set 3 : plumb through render_process_id #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -29 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.h View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.cc View 1 2 1 chunk +1 line, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (8 generated)
Peter Beverloo
This patch depends on https://codereview.chromium.org/554213003/ (without it, Web Notification icons are no longer being fetched). ...
6 years, 3 months ago (2014-09-17 16:24:08 UTC) #2
dewittj
https://codereview.chromium.org/578883003/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/578883003/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode1912 chrome/browser/chrome_content_browser_client.cc:1912: DesktopNotificationService* service = So DNS needs a Profile* (as ...
6 years, 3 months ago (2014-09-17 16:58:48 UTC) #4
Peter Beverloo
https://codereview.chromium.org/578883003/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/578883003/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode1912 chrome/browser/chrome_content_browser_client.cc:1912: DesktopNotificationService* service = On 2014/09/17 16:58:48, dewittj wrote: > ...
6 years, 3 months ago (2014-09-17 17:06:06 UTC) #5
Jun Mukai
I believe there are a few more ContentBrowserClient implementations you'll have to modify: https://code.google.com/p/chromium/codesearch#search/&q=public.*%5CbContentBrowserClient&sq=package:chromium&type=cs https://codereview.chromium.org/578883003/diff/1/chrome/browser/chrome_content_browser_client.cc ...
6 years, 3 months ago (2014-09-18 18:00:59 UTC) #6
Peter Beverloo
dcheng: ping re: question in DesktopNotificationService::DisplayNameForOrigin (PS1). https://codereview.chromium.org/578883003/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/578883003/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode1915 chrome/browser/chrome_content_browser_client.cc:1915: params, delegate.Pass(), ...
6 years, 2 months ago (2014-10-03 14:39:30 UTC) #7
dcheng
https://codereview.chromium.org/578883003/diff/1/chrome/browser/notifications/desktop_notification_service.cc File chrome/browser/notifications/desktop_notification_service.cc (right): https://codereview.chromium.org/578883003/diff/1/chrome/browser/notifications/desktop_notification_service.cc#newcode171 chrome/browser/notifications/desktop_notification_service.cc:171: base::string16 DesktopNotificationService::DisplayNameForOrigin( On 2014/09/17 16:58:48, dewittj wrote: > +dcheng ...
6 years, 2 months ago (2014-10-03 18:40:06 UTC) #8
Peter Beverloo
OK, thanks. Aaron: any idea if the process Id check for extensions running in the ...
6 years, 2 months ago (2014-10-17 14:50:26 UTC) #10
not at google - send to devlin
> I've also cc'ed kalman@ as he's likely to know this too. What is the ...
6 years, 2 months ago (2014-10-17 15:51:16 UTC) #11
Peter Beverloo
On 2014/10/17 15:51:16, kalman wrote: > > I've also cc'ed kalman@ as he's likely to ...
6 years, 2 months ago (2014-10-17 16:00:27 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/578883003/diff/1/chrome/browser/notifications/desktop_notification_service.cc File chrome/browser/notifications/desktop_notification_service.cc (right): https://codereview.chromium.org/578883003/diff/1/chrome/browser/notifications/desktop_notification_service.cc#newcode171 chrome/browser/notifications/desktop_notification_service.cc:171: base::string16 DesktopNotificationService::DisplayNameForOrigin( On 2014/10/03 18:40:06, dcheng wrote: > On ...
6 years, 2 months ago (2014-10-17 16:12:27 UTC) #13
Peter Beverloo
Ok, thanks Ben. Then we leave the existing behavior intact. I've plumbed through the render_process_id ...
6 years, 2 months ago (2014-10-24 13:20:19 UTC) #15
Peter Beverloo
+benm@ for aw/ rs
6 years, 2 months ago (2014-10-24 13:21:42 UTC) #17
benm (inactive)
a_w lgtm
6 years, 2 months ago (2014-10-24 13:29:33 UTC) #18
Peter Beverloo
-jochen, +jam for small ContentBrowserClient API change.
6 years, 2 months ago (2014-10-24 13:58:43 UTC) #20
dewittj
c/b/notifications lgtm
6 years, 2 months ago (2014-10-24 20:17:37 UTC) #21
Mike West
c/s LGTM.
6 years, 2 months ago (2014-10-25 06:03:26 UTC) #22
Avi (use Gerrit)
content/public LGTM
6 years, 1 month ago (2014-10-27 17:02:21 UTC) #24
Avi (use Gerrit)
On 2014/10/27 17:02:21, Avi wrote: > content/public LGTM content/browser LGTM 2
6 years, 1 month ago (2014-10-27 17:04:08 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/578883003/40001
6 years, 1 month ago (2014-10-27 17:05:29 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-10-27 17:59:30 UTC) #28
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 18:00:14 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b3024230575987f177b860a189551099f56ea50b
Cr-Commit-Position: refs/heads/master@{#301394}

Powered by Google App Engine
This is Rietveld 408576698