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

Issue 2244913002: Remove content::NotificationPermissionDispatcher. (Closed)

Created:
4 years, 4 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 4 months ago
CC:
abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, mlamouri+watch-notifications_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@permissions_typemaps
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove content::NotificationPermissionDispatcher. blink::Notification can make calls to the Mojo PermissionService itself. BUG=561879 Committed: https://crrev.com/be876eec511985fc0f476628b7b43dc951bd04c5 Cr-Commit-Position: refs/heads/master@{#412636}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased. #

Total comments: 3

Patch Set 3 : Move service connection to NotificationManager. #

Total comments: 3

Patch Set 4 : Rebased. #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -398 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
D content/renderer/notification_permission_dispatcher.h View 1 chunk +0 lines, -50 lines 0 comments Download
D content/renderer/notification_permission_dispatcher.cc View 1 chunk +0 lines, -62 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 chunks +0 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 chunks +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 2 2 chunks +1 line, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationManager.h View 1 2 4 chunks +13 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationManager.cpp View 1 2 2 chunks +41 lines, -6 lines 0 comments Download
D third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.h View 1 chunk +0 lines, -36 lines 0 comments Download
D third_party/WebKit/Source/modules/notifications/NotificationPermissionClient.cpp View 1 chunk +0 lines, -35 lines 0 comments Download
D third_party/WebKit/Source/web/NotificationPermissionClientImpl.h View 1 chunk +0 lines, -32 lines 0 comments Download
D third_party/WebKit/Source/web/NotificationPermissionClientImpl.cpp View 1 chunk +0 lines, -79 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 2 chunks +0 lines, -6 lines 0 comments Download
D third_party/WebKit/public/web/modules/notifications/OWNERS View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/public/web/modules/notifications/WebNotificationPermissionCallback.h View 1 chunk +0 lines, -48 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 49 (24 generated)
Reilly Grant (use Gerrit)
I noticed this little bit of low-hanging fruit. Please take a look.
4 years, 4 months ago (2016-08-12 23:16:23 UTC) #4
esprehn
On 2016/08/12 at 23:16:23, reillyg wrote: > I noticed this little bit of low-hanging fruit. ...
4 years, 4 months ago (2016-08-12 23:22:42 UTC) #7
esprehn
Patch looks pretty good though :) https://codereview.chromium.org/2244913002/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2244913002/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode366 third_party/WebKit/Source/modules/notifications/Notification.cpp:366: rawPermissionService->RequestPermission( I thought ...
4 years, 4 months ago (2016-08-12 23:24:32 UTC) #8
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2244913002/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2244913002/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode366 third_party/WebKit/Source/modules/notifications/Notification.cpp:366: rawPermissionService->RequestPermission( On 2016/08/12 at 23:24:32, esprehn wrote: > I ...
4 years, 4 months ago (2016-08-12 23:28:59 UTC) #9
Reilly Grant (use Gerrit)
Rebased.
4 years, 4 months ago (2016-08-13 00:45:35 UTC) #10
haraken
https://codereview.chromium.org/2244913002/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2244913002/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode360 third_party/WebKit/Source/modules/notifications/Notification.cpp:360: Permissions::connectToService(context, mojo::GetProxy(&permissionService)); I'd prefer connecting to the service in ...
4 years, 4 months ago (2016-08-13 01:54:32 UTC) #16
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2244913002/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2244913002/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode360 third_party/WebKit/Source/modules/notifications/Notification.cpp:360: Permissions::connectToService(context, mojo::GetProxy(&permissionService)); On 2016/08/13 at 01:54:32, haraken wrote: > ...
4 years, 4 months ago (2016-08-15 17:55:01 UTC) #17
Reilly Grant (use Gerrit)
I've moved the new service connection to NotificationManager. Please take a look. haraken@, I'd rather ...
4 years, 4 months ago (2016-08-15 19:56:41 UTC) #18
Peter Beverloo
+johnme for reviewing this from a notifications pov
4 years, 4 months ago (2016-08-15 19:57:31 UTC) #20
esprehn
https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/NotificationManager.cpp File third_party/WebKit/Source/modules/notifications/NotificationManager.cpp (right): https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/NotificationManager.cpp#newcode54 third_party/WebKit/Source/modules/notifications/NotificationManager.cpp:54: if (!m_notificationService) why does permissionStatus() do: Platform::current()->interfaceProvider()->getInterface(mojo::GetProxy(&m_notificationService)); but requestPermission() ...
4 years, 4 months ago (2016-08-15 20:07:48 UTC) #21
dcheng
On 2016/08/15 19:57:31, Peter Beverloo- OOO until 22nd wrote: > +johnme for reviewing this from ...
4 years, 4 months ago (2016-08-15 20:10:36 UTC) #22
Reilly Grant (use Gerrit)
On 2016/08/15 at 20:07:48, esprehn wrote: > https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/NotificationManager.cpp > File third_party/WebKit/Source/modules/notifications/NotificationManager.cpp (right): > > https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/NotificationManager.cpp#newcode54 ...
4 years, 4 months ago (2016-08-15 20:13:28 UTC) #23
haraken
LGTM On 2016/08/15 20:10:36, dcheng wrote: > On 2016/08/15 19:57:31, Peter Beverloo- OOO until 22nd ...
4 years, 4 months ago (2016-08-15 21:31:44 UTC) #24
johnme
Much cleaner - thanks! lgtm from a notifications perspective; I'll defer to others on the ...
4 years, 4 months ago (2016-08-16 12:41:54 UTC) #25
Michael van Ouwerkerk
rs lgtm module red bots https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (left): https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/Notification.cpp#oldcode362 third_party/WebKit/Source/modules/notifications/Notification.cpp:362: DCHECK(context->activeDOMObjectsAreStopped()); Is this case ...
4 years, 4 months ago (2016-08-16 13:01:10 UTC) #30
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (left): https://codereview.chromium.org/2244913002/diff/40001/third_party/WebKit/Source/modules/notifications/Notification.cpp#oldcode362 third_party/WebKit/Source/modules/notifications/Notification.cpp:362: DCHECK(context->activeDOMObjectsAreStopped()); On 2016/08/16 at 13:01:10, Michael van Ouwerkerk wrote: ...
4 years, 4 months ago (2016-08-16 17:46:37 UTC) #31
Reilly Grant (use Gerrit)
Rebased.
4 years, 4 months ago (2016-08-16 19:52:44 UTC) #32
Reilly Grant (use Gerrit)
Rebased.
4 years, 4 months ago (2016-08-17 17:10:04 UTC) #37
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/2244913002/80001
4 years, 4 months ago (2016-08-17 17:10:50 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/239980)
4 years, 4 months ago (2016-08-17 17:18:22 UTC) #42
esprehn
lgtm
4 years, 4 months ago (2016-08-17 18:19:57 UTC) #43
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/2244913002/80001
4 years, 4 months ago (2016-08-17 18:21:27 UTC) #45
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-17 21:11:15 UTC) #46
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/be876eec511985fc0f476628b7b43dc951bd04c5 Cr-Commit-Position: refs/heads/master@{#412636}
4 years, 4 months ago (2016-08-17 21:14:01 UTC) #48
megjablon
4 years, 4 months ago (2016-08-17 22:55:10 UTC) #49
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2258673002/ by megjablon@chromium.org.

The reason for reverting is: Causing failure on Builder WebKit Linux Leak

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Leak/b...

request-permission-detached-context.html

15:25:46.371 7635 worker/0
http/tests/notifications/request-permission-detached-context.html leaked
15:25:46.371 7635   Xlib:  extension "RANDR" missing on display ":9".
15:25:46.371 7635   Xlib:  extension "RANDR" missing on display ":9".
15:25:46.374 17565 [4/95]
http/tests/notifications/request-permission-detached-context.html failed
unexpectedly (leak detected:
({"numberOfLiveActiveDOMObjects":[2,6],"numberOfLiveDocuments":[1,3],"numberOfLiveNodes":[4,36],"numberOfLiveResources":[0,3]}))
15:25:46.372 7635 worker/0
http/tests/notifications/request-permission-detached-context.html failed:
15:25:46.372 7635 worker/0  leak detected:
({"numberOfLiveActiveDOMObjects":[2,6],"numberOfLiveDocuments":[1,3],"numberOfLiveNodes":[4,36],"numberOfLiveResources":[0,3]}).

Powered by Google App Engine
This is Rietveld 408576698