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

Issue 774573003: Start pulling away notification logic from ChromeContentBrowserClient. (Closed)

Created:
6 years ago by Peter Beverloo
Modified:
6 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-notifications_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-shell_chromium.org, peter+watch_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Start pulling away notification logic from ChromeContentBrowserClient. This moves a bunch of notification permission logic (specifically for extensions) from ChromeContentBrowserClient to a new object, the PlatformNotificationService, which is a singleton in the browser process. BUG=439950 Committed: https://crrev.com/c26c6c6774f6c150663c33ee107938c5470568a0 Cr-Commit-Position: refs/heads/master@{#307694}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : rebased #

Patch Set 5 : add a DCHECK #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -162 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 1 chunk +2 lines, -10 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 4 chunks +5 lines, -67 lines 0 comments Download
A chrome/browser/notifications/platform_notification_service_impl.h View 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/notifications/platform_notification_service_impl.cc View 1 chunk +97 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/notifications/notification_message_filter.cc View 1 2 3 4 3 chunks +19 lines, -10 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 5 chunks +5 lines, -20 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 1 chunk +3 lines, -6 lines 0 comments Download
A content/public/browser/platform_notification_service.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.h View 1 2 3 2 chunks +2 lines, -11 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_content_browser_client.cc View 1 2 3 2 chunks +4 lines, -22 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.h View 3 chunks +14 lines, -13 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 3 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Peter Beverloo
I'm a bit in flux about this patch. I quite like pulling our logic away ...
6 years ago (2014-12-02 16:39:24 UTC) #2
dewittj
> What I'm less fond of is the duplication in name Notification is also a ...
6 years ago (2014-12-02 17:22:59 UTC) #3
Peter Beverloo
No, not really. My view is: (1) PlatformNotificationService(Impl) -- Interface made available through the ContentBrowserClient. ...
6 years ago (2014-12-05 20:03:43 UTC) #4
Peter Beverloo
On 2014/12/05 20:03:43, Peter Beverloo wrote: > No, not really. My view is: > > ...
6 years ago (2014-12-08 14:26:58 UTC) #5
Peter Beverloo
ping?
6 years ago (2014-12-09 19:41:05 UTC) #6
dewittj
lgtm
6 years ago (2014-12-09 19:47:54 UTC) #7
Peter Beverloo
Thanks! +avi for content/
6 years ago (2014-12-09 21:54:08 UTC) #9
Avi (use Gerrit)
lgtm stampity stamp https://codereview.chromium.org/774573003/diff/80001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/774573003/diff/80001/content/public/browser/content_browser_client.h#newcode419 content/public/browser/content_browser_client.h:419: // Notifications to the user. The ...
6 years ago (2014-12-10 00:18:39 UTC) #10
Peter Beverloo
https://codereview.chromium.org/774573003/diff/80001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/774573003/diff/80001/content/public/browser/content_browser_client.h#newcode419 content/public/browser/content_browser_client.h:419: // Notifications to the user. The embedder can return ...
6 years ago (2014-12-10 12:14:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/774573003/100001
6 years ago (2014-12-10 12:14:59 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-10 14:14:07 UTC) #14
commit-bot: I haz the power
6 years ago (2014-12-10 14:14:42 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c26c6c6774f6c150663c33ee107938c5470568a0
Cr-Commit-Position: refs/heads/master@{#307694}

Powered by Google App Engine
This is Rietveld 408576698