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

Issue 421693002: Adds an AccessPolicy that is queried to determine what a connection can do (Closed)

Created:
6 years, 5 months ago by sky
Modified:
6 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Adds an AccessPolicy that is queried to determine what a connection can do As a result of this I uncovered some things we shouldn't have been doing. I had to update a number of tests accordingly. BUG=396804 TEST=covered by test R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285760

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 12

Patch Set 3 : integrate review feedback #

Total comments: 2

Patch Set 4 : wrap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+721 lines, -662 lines) Patch
M mojo/mojo_services.gypi View 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/tests/view_manager_unittest.cc View 6 chunks +8 lines, -125 lines 0 comments Download
A mojo/services/view_manager/access_policy.h View 1 1 chunk +63 lines, -0 lines 0 comments Download
A mojo/services/view_manager/access_policy_delegate.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A mojo/services/view_manager/default_access_policy.h View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
A mojo/services/view_manager/default_access_policy.cc View 1 2 1 chunk +127 lines, -0 lines 0 comments Download
M mojo/services/view_manager/view_manager_service_impl.h View 1 2 7 chunks +19 lines, -33 lines 0 comments Download
M mojo/services/view_manager/view_manager_service_impl.cc View 1 2 3 27 chunks +110 lines, -300 lines 0 comments Download
M mojo/services/view_manager/view_manager_unittest.cc View 12 chunks +117 lines, -204 lines 0 comments Download
A mojo/services/view_manager/window_manager_access_policy.h View 1 1 chunk +57 lines, -0 lines 0 comments Download
A mojo/services/view_manager/window_manager_access_policy.cc View 1 2 1 chunk +112 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sky
I've largely left the capabilities we grant to the window manager intact. I suspect they ...
6 years, 5 months ago (2014-07-25 20:18:58 UTC) #1
sky
6 years, 5 months ago (2014-07-25 20:19:05 UTC) #2
Ben Goodger (Google)
There should also be a TODO that explains why each aspect of the window manager's ...
6 years, 5 months ago (2014-07-25 20:51:46 UTC) #3
sky
https://codereview.chromium.org/421693002/diff/20001/mojo/services/view_manager/access_policy_delegate.h File mojo/services/view_manager/access_policy_delegate.h (right): https://codereview.chromium.org/421693002/diff/20001/mojo/services/view_manager/access_policy_delegate.h#newcode29 mojo/services/view_manager/access_policy_delegate.h:29: virtual bool IsNodeEmbeddedInAnotherConnectionForAccessPolicy( On 2014/07/25 20:51:46, Ben Goodger (Google) ...
6 years, 5 months ago (2014-07-25 21:10:46 UTC) #4
Ben Goodger (Google)
lgtm https://codereview.chromium.org/421693002/diff/40001/mojo/services/view_manager/view_manager_service_impl.cc File mojo/services/view_manager/view_manager_service_impl.cc (right): https://codereview.chromium.org/421693002/diff/40001/mojo/services/view_manager/view_manager_service_impl.cc#newcode655 mojo/services/view_manager/view_manager_service_impl.cc:655: ViewManagerServiceImpl::IsNodeKnownForAccessPolicy(const Node* node) const { nit: linebreak after ...
6 years, 5 months ago (2014-07-25 21:56:32 UTC) #5
sky
https://codereview.chromium.org/421693002/diff/40001/mojo/services/view_manager/view_manager_service_impl.cc File mojo/services/view_manager/view_manager_service_impl.cc (right): https://codereview.chromium.org/421693002/diff/40001/mojo/services/view_manager/view_manager_service_impl.cc#newcode655 mojo/services/view_manager/view_manager_service_impl.cc:655: ViewManagerServiceImpl::IsNodeKnownForAccessPolicy(const Node* node) const { On 2014/07/25 21:56:31, Ben ...
6 years, 5 months ago (2014-07-25 22:00:13 UTC) #6
sky
The CQ bit was checked by sky@chromium.org
6 years, 5 months ago (2014-07-25 22:00:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/421693002/60001
6 years, 5 months ago (2014-07-25 22:04:22 UTC) #8
sky
Committed patchset #4 manually as r285760 (presubmit successful).
6 years, 5 months ago (2014-07-26 14:52:42 UTC) #9
Ben Goodger (Google)
So did you get all the tests? Can I revive my CL now? -Ben On ...
6 years, 5 months ago (2014-07-26 16:23:29 UTC) #10
sky
6 years, 5 months ago (2014-07-26 19:44:07 UTC) #11
You'll need my other to patch land first. I'll update it now.

On Sat, Jul 26, 2014 at 9:23 AM, Ben Goodger (Google) <ben@chromium.org> wrote:
> So did you get all the tests? Can I revive my CL now?
>
> -Ben
>
>
> On Sat, Jul 26, 2014 at 7:52 AM, <sky@chromium.org> wrote:
>>
>> Committed patchset #4 manually as r285760 (presubmit successful).
>>
>> https://codereview.chromium.org/421693002/
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698