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

Issue 2874053003: Add checks for Feature Policy to the mojo Permission Service (Closed)

Created:
3 years, 7 months ago by raymes
Modified:
3 years, 6 months ago
CC:
chfremer+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-permissions_chromium.org, nasko+codewatch_chromium.org, raymes+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add checks for Feature Policy to the mojo Permission Service This adds Feature Policy checks to the mojo permission service and corresponding tests. Because multiple permissions can be requested at the same time, part of a request can be answered synchronously (by feature policy) and the other part asynchronously (by quering the PermissionManager). Thus we need to track the partially answered request in the PendingRequest class. Feature policy checks are done here (in content) as they will form part of the specifications for various features and thus it is best if other embedders of content also benefit from these checks. BUG=689802 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2874053003 Cr-Commit-Position: refs/heads/master@{#475832} Committed: https://chromium.googlesource.com/chromium/src/+/09bcca49766516c2b8a685420b7b075f39350500

Patch Set 1 #

Patch Set 2 : FP #

Total comments: 1

Patch Set 3 : FP #

Patch Set 4 : FP #

Patch Set 5 : FP #

Patch Set 6 : FP #

Patch Set 7 : Add checks for Feature Policy to the mojo Permission Service #

Total comments: 12

Patch Set 8 : Add checks for Feature Policy to the mojo Permission Service #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -40 lines) Patch
M content/browser/permissions/permission_service_context.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/permissions/permission_service_impl.h View 1 2 7 2 chunks +6 lines, -11 lines 0 comments Download
M content/browser/permissions/permission_service_impl.cc View 1 2 3 4 5 6 7 6 chunks +141 lines, -28 lines 0 comments Download
A content/browser/permissions/permission_service_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +189 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 37 (28 generated)
raymes
3 years, 7 months ago (2017-05-15 05:31:49 UTC) #3
raymes
ping :)
3 years, 7 months ago (2017-05-21 23:17:10 UTC) #4
Timothy Loh
lgtm https://codereview.chromium.org/2874053003/diff/20001/content/browser/permissions/permission_service_impl_unittest.cc File content/browser/permissions/permission_service_impl_unittest.cc (right): https://codereview.chromium.org/2874053003/diff/20001/content/browser/permissions/permission_service_impl_unittest.cc#newcode173 content/browser/permissions/permission_service_impl_unittest.cc:173: EXPECT_EQ(2u, result.size()); Maybe also have a test of ...
3 years, 7 months ago (2017-05-23 04:14:07 UTC) #5
commit-bot: I haz the power
This CL has an open dependency (Issue 2898653004 Patch 60001). Please resolve the dependency and ...
3 years, 7 months ago (2017-05-24 02:48:54 UTC) #16
raymes
mlamouri: PTAL, thanks!
3 years, 6 months ago (2017-05-29 05:03:13 UTC) #24
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2874053003/diff/120001/content/browser/permissions/permission_service_impl.cc File content/browser/permissions/permission_service_impl.cc (right): https://codereview.chromium.org/2874053003/diff/120001/content/browser/permissions/permission_service_impl.cc#newcode140 content/browser/permissions/permission_service_impl.cc:140: int id() { return id_; } nit: `const` ...
3 years, 6 months ago (2017-05-30 09:38:22 UTC) #27
raymes
Thanks Mounir! https://codereview.chromium.org/2874053003/diff/120001/content/browser/permissions/permission_service_impl.cc File content/browser/permissions/permission_service_impl.cc (right): https://codereview.chromium.org/2874053003/diff/120001/content/browser/permissions/permission_service_impl.cc#newcode140 content/browser/permissions/permission_service_impl.cc:140: int id() { return id_; } On ...
3 years, 6 months ago (2017-05-31 05:32:01 UTC) #29
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/2874053003/140001
3 years, 6 months ago (2017-05-31 06:20:20 UTC) #34
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 06:53:14 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/09bcca49766516c2b8a685420b7b...

Powered by Google App Engine
This is Rietveld 408576698