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

Issue 1317713006: Changes around how embed roots are set (Closed)

Created:
5 years, 3 months ago by sky
Modified:
5 years, 3 months ago
Reviewers:
Fady Samuel
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, penghuang+watch-mandoline_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changes around how embed roots are set I'm adding a generic SetAccessPolicy function. The semantics are only the owner can change the policy and the next ViewTreeClient that is embedded in the view picks up the access policy. This way access policies are locked to the life of the connection. The API also allows us to add other policies in the future. BUG=none TEST=covered by tests R=fsamuel@chromium.org Committed: https://crrev.com/0b9dc8c54e1558554bd3e334dd8b45f0b68acc13 Cr-Commit-Position: refs/heads/master@{#347452}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 3

Patch Set 3 : use enum #

Patch Set 4 : merge to trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -52 lines) Patch
M components/html_viewer/html_frame_apptest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/view_manager/access_policy.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/view_manager/default_access_policy.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/view_manager/default_access_policy.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/view_manager/public/cpp/lib/view.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M components/view_manager/public/cpp/lib/view_tree_client_impl.h View 2 chunks +4 lines, -7 lines 0 comments Download
M components/view_manager/public/cpp/lib/view_tree_client_impl.cc View 1 2 3 chunks +11 lines, -5 lines 0 comments Download
M components/view_manager/public/cpp/view.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/view_manager/public/cpp/view_tree_connection.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/view_manager/public/interfaces/view_tree.mojom View 1 2 5 chunks +25 lines, -6 lines 0 comments Download
M components/view_manager/server_view.h View 1 2 3 chunks +13 lines, -5 lines 0 comments Download
M components/view_manager/server_view.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M components/view_manager/view_manager_client_apptest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/view_manager/view_tree_apptest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/view_manager/view_tree_impl.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M components/view_manager/view_tree_impl.cc View 1 2 4 chunks +25 lines, -7 lines 0 comments Download
M components/view_manager/view_tree_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/view_manager/window_manager_access_policy.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/view_manager/window_manager_access_policy.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M components/web_view/web_view_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M mandoline/ui/desktop_ui/browser_window.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M mandoline/ui/phone_ui/phone_browser_application_delegate.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
sky
5 years, 3 months ago (2015-09-03 22:08:59 UTC) #1
Fady Samuel
LGTM + question, could the access policy be an enum instead of a set of ...
5 years, 3 months ago (2015-09-04 16:02:32 UTC) #2
sky
https://codereview.chromium.org/1317713006/diff/20001/components/view_manager/public/interfaces/view_tree.mojom File components/view_manager/public/interfaces/view_tree.mojom (right): https://codereview.chromium.org/1317713006/diff/20001/components/view_manager/public/interfaces/view_tree.mojom#newcode47 components/view_manager/public/interfaces/view_tree.mojom:47: const uint32 kAccessPolicyDefault = 0; On 2015/09/04 16:02:32, Fady ...
5 years, 3 months ago (2015-09-04 16:38:11 UTC) #3
sky
https://codereview.chromium.org/1317713006/diff/20001/components/view_manager/public/interfaces/view_tree.mojom File components/view_manager/public/interfaces/view_tree.mojom (right): https://codereview.chromium.org/1317713006/diff/20001/components/view_manager/public/interfaces/view_tree.mojom#newcode47 components/view_manager/public/interfaces/view_tree.mojom:47: const uint32 kAccessPolicyDefault = 0; On 2015/09/04 16:38:11, sky ...
5 years, 3 months ago (2015-09-04 16:41:44 UTC) #4
sky
Changed to enum.
5 years, 3 months ago (2015-09-04 17:09:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317713006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317713006/40001
5 years, 3 months ago (2015-09-04 17:10:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/65876) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-04 17:12:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317713006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317713006/60001
5 years, 3 months ago (2015-09-04 17:42:47 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/129105)
5 years, 3 months ago (2015-09-04 18:12:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317713006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317713006/60001
5 years, 3 months ago (2015-09-04 18:18:52 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-04 18:44:35 UTC) #18
commit-bot: I haz the power
5 years, 3 months ago (2015-09-04 18:46:02 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0b9dc8c54e1558554bd3e334dd8b45f0b68acc13
Cr-Commit-Position: refs/heads/master@{#347452}

Powered by Google App Engine
This is Rietveld 408576698