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

Issue 2842013002: Use a mojo::StrongBindingSet to manage PermissionServiceImpls (Closed)

Created:
3 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a mojo::StrongBindingSet to manage PermissionServiceImpls mojo::StrongBindingSet replaces the pattern of manually managing a list of Mojo service implementations and registering connection error handlers to remove entries from the list when their pipes are closed. BUG=None Review-Url: https://codereview.chromium.org/2842013002 Cr-Commit-Position: refs/heads/master@{#470992} Committed: https://chromium.googlesource.com/chromium/src/+/b743d73b67249433eead4af1f526d77acc31e0cc

Patch Set 1 #

Total comments: 4

Patch Set 2 : CancelPendingOperations -> CloseBindings #

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -77 lines) Patch
M content/browser/permissions/permission_service_context.h View 1 2 4 chunks +6 lines, -12 lines 0 comments Download
M content/browser/permissions/permission_service_context.cc View 1 2 4 chunks +7 lines, -20 lines 0 comments Download
M content/browser/permissions/permission_service_impl.h View 4 chunks +1 line, -12 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 2 chunks +14 lines, -33 lines 0 comments Download

Messages

Total messages: 32 (18 generated)
Reilly Grant (use Gerrit)
PTAL
3 years, 8 months ago (2017-04-25 21:24:50 UTC) #6
mlamouri (slow - plz ping)
+raymes
3 years, 8 months ago (2017-04-26 13:30:38 UTC) #8
raymes
Overall this looks like a nice simplification but had a question. https://codereview.chromium.org/2842013002/diff/1/content/browser/permissions/permission_service_context.cc File content/browser/permissions/permission_service_context.cc (left): ...
3 years, 7 months ago (2017-04-28 02:46:00 UTC) #9
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2842013002/diff/1/content/browser/permissions/permission_service_context.cc File content/browser/permissions/permission_service_context.cc (left): https://codereview.chromium.org/2842013002/diff/1/content/browser/permissions/permission_service_context.cc#oldcode147 content/browser/permissions/permission_service_context.cc:147: service->CancelPendingOperations(); On 2017/04/28 02:46:00, raymes wrote: > Please bear ...
3 years, 7 months ago (2017-04-28 17:52:22 UTC) #10
raymes
lgtm Thanks for the explanation. That makes sense. What happens if we needed to iterate ...
3 years, 7 months ago (2017-04-30 23:25:24 UTC) #11
Reilly Grant (use Gerrit)
I talked to rockot@ about adding a method to iterate over a mojo::StrongBindingSet. It's certainly ...
3 years, 7 months ago (2017-05-01 19:40:51 UTC) #12
Reilly Grant (use Gerrit)
CancelPendingOperations -> CloseBindings
3 years, 7 months ago (2017-05-01 20:01:30 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/2842013002/20001
3 years, 7 months ago (2017-05-01 20:04:05 UTC) #17
Reilly Grant (use Gerrit)
+timvolodine@ for OWNERS review since mlamouri@ is OOO.
3 years, 7 months ago (2017-05-01 20:06:54 UTC) #21
timvolodine
On 2017/05/01 20:06:54, Reilly Grant wrote: > +timvolodine@ for OWNERS review since mlamouri@ is OOO. ...
3 years, 7 months ago (2017-05-05 18:13:08 UTC) #24
mlamouri (slow - plz ping)
lgtm
3 years, 7 months ago (2017-05-11 09:54:08 UTC) #25
Reilly Grant (use Gerrit)
Rebased
3 years, 7 months ago (2017-05-11 15:57:25 UTC) #26
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/2842013002/40001
3 years, 7 months ago (2017-05-11 15:59:03 UTC) #29
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 17:22:04 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b743d73b67249433eead4af1f526...

Powered by Google App Engine
This is Rietveld 408576698