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

Issue 2258353002: Reland of Remove content::NotificationPermissionDispatcher. (Closed)

Created:
4 years, 4 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 3 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

Reland of move content::NotificationPermissionDispatcher. (patchset #1 id:1 of https://codereview.chromium.org/2258673002/ ) Reason for revert: Fixed the leak by adding a connection error handler that resets m_permissionService, breaking the circular reference between NotificationManager and pending Mojo callbacks. Original issue's description: > Revert of Remove content::NotificationPermissionDispatcher. (patchset #5 id:80001 of https://codereview.chromium.org/2244913002/ ) > > Reason for revert: > Causing failure on Builder WebKit Linux Leak > > https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Leak/builds/22036 > > 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]}) > > Original issue's 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} > > TBR=esprehn@chromium.org,haraken@chromium.org,johnme@chromium.org,mvanouwerkerk@chromium.org,peter@chromium.org,reillyg@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=561879 > > Committed: https://crrev.com/5241216894d534ab30c763375a78ad68e0d155db > Cr-Commit-Position: refs/heads/master@{#412678} # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=561879 Committed: https://crrev.com/a4fd553733bc0a7f6e0e110c66b0008c6dbf5a41 Cr-Commit-Position: refs/heads/master@{#414820}

Patch Set 1 #

Patch Set 2 : Close permission service pipe on connection failure. #

Total comments: 4

Patch Set 3 : Rebased and removed per-file rules from content/renderer/OWNERS. #

Patch Set 4 : Remove NotificationPermissionClient initialization from ChromeClientImpl. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -402 lines) Patch
M content/content_renderer.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/OWNERS View 1 2 1 chunk +0 lines, -4 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 3 chunks +0 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 3 chunks +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 2 3 2 chunks +1 line, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationManager.h View 1 2 3 chunks +14 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationManager.cpp View 1 2 chunks +48 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
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 3 3 chunks +0 lines, -3 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/web.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 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

Messages

Total messages: 36 (17 generated)
Reilly Grant (use Gerrit)
Created Reland of move content::NotificationPermissionDispatcher.
4 years, 4 months ago (2016-08-20 00:27:51 UTC) #1
Reilly Grant (use Gerrit)
Please take a look. The cause of the leak was that when a Mojo call ...
4 years, 4 months ago (2016-08-20 00:31:19 UTC) #4
haraken
LGTM https://codereview.chromium.org/2258353002/diff/270001/third_party/WebKit/Source/modules/notifications/NotificationManager.cpp File third_party/WebKit/Source/modules/notifications/NotificationManager.cpp (right): https://codereview.chromium.org/2258353002/diff/270001/third_party/WebKit/Source/modules/notifications/NotificationManager.cpp#newcode100 third_party/WebKit/Source/modules/notifications/NotificationManager.cpp:100: m_permissionService.reset(); Don't we need to reset m_notificationService as ...
4 years, 4 months ago (2016-08-20 01:34:38 UTC) #6
johnme
notification bits lgtm, deferring to haraken for mojo lifetimes
4 years, 4 months ago (2016-08-22 14:52:52 UTC) #9
Peter Beverloo
rs lgtm https://codereview.chromium.org/2258353002/diff/270001/content/renderer/notification_permission_dispatcher.h File content/renderer/notification_permission_dispatcher.h (left): https://codereview.chromium.org/2258353002/diff/270001/content/renderer/notification_permission_dispatcher.h#oldcode1 content/renderer/notification_permission_dispatcher.h:1: // Copyright 2014 The Chromium Authors. All ...
4 years, 4 months ago (2016-08-22 14:54:46 UTC) #10
Reilly Grant (use Gerrit)
Rebased and removed per-file rules from content/renderer/OWNERS.
4 years, 4 months ago (2016-08-22 18:17:19 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2258353002/diff/270001/content/renderer/notification_permission_dispatcher.h File content/renderer/notification_permission_dispatcher.h (left): https://codereview.chromium.org/2258353002/diff/270001/content/renderer/notification_permission_dispatcher.h#oldcode1 content/renderer/notification_permission_dispatcher.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
4 years, 4 months ago (2016-08-22 18:17:33 UTC) #12
Reilly Grant (use Gerrit)
esprehn@ can you take a quick look at this. The only thing changed from the ...
4 years, 4 months ago (2016-08-23 20:02:22 UTC) #17
Reilly Grant (use Gerrit)
Ping.
4 years, 3 months ago (2016-08-26 17:00:06 UTC) #18
esprehn
On 2016/08/26 at 17:00:06, reillyg wrote: > Ping. Can you update the description to explain ...
4 years, 3 months ago (2016-08-26 17:09:50 UTC) #19
Reilly Grant (use Gerrit)
On 2016/08/26 at 17:09:50, esprehn wrote: > On 2016/08/26 at 17:00:06, reillyg wrote: > > ...
4 years, 3 months ago (2016-08-26 17:13:53 UTC) #22
esprehn
lgtm
4 years, 3 months ago (2016-08-26 17:32:07 UTC) #23
esprehn
On 2016/08/26 at 17:32:07, esprehn wrote: > lgtm In the future you don't need this ...
4 years, 3 months ago (2016-08-26 17:33:00 UTC) #24
Reilly Grant (use Gerrit)
On 2016/08/26 at 17:33:00, esprehn wrote: > On 2016/08/26 at 17:32:07, esprehn wrote: > > ...
4 years, 3 months ago (2016-08-26 18:14:36 UTC) #27
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/2258353002/290001
4 years, 3 months ago (2016-08-26 18:15:10 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/59255) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-26 18:19:05 UTC) #30
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/2258353002/310001
4 years, 3 months ago (2016-08-26 20:14:13 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:310001)
4 years, 3 months ago (2016-08-26 21:44:03 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 21:46:05 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a4fd553733bc0a7f6e0e110c66b0008c6dbf5a41
Cr-Commit-Position: refs/heads/master@{#414820}

Powered by Google App Engine
This is Rietveld 408576698