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

Issue 1864523002: Pass policy VideoCaptureAllowed to ARC (Closed)

Created:
4 years, 8 months ago by phweiss
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tnagel+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix syntax of JSON string, include cameraDisabled Instead of passing ArcApplicationPolicy as entry in the json dictionary, it is now parsed and used as the top level dictionary, with other policies added to it. The VideoCaptureAllowed policy is mapped to cameraDisabled. Bug: b/25985338 Committed: https://crrev.com/e939d0314bc6ae82b04def09c58972ab121de51e Cr-Commit-Position: refs/heads/master@{#385712}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove/add include<string> #

Total comments: 2

Patch Set 3 : Fix JSON, ArcApplicationPolicy is now parsed as top level #

Total comments: 1

Patch Set 4 : Modify testcases #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -32 lines) Patch
M chrome/browser/chromeos/arc/arc_policy_bridge.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_policy_bridge.cc View 1 2 3 chunks +57 lines, -19 lines 3 comments Download
M chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc View 1 2 3 2 chunks +69 lines, -9 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 25 (10 generated)
phweiss
ptal
4 years, 8 months ago (2016-04-05 15:20:29 UTC) #2
bartfab (slow)
https://codereview.chromium.org/1864523002/diff/1/chrome/browser/chromeos/arc/arc_policy_bridge.h File chrome/browser/chromeos/arc/arc_policy_bridge.h (right): https://codereview.chromium.org/1864523002/diff/1/chrome/browser/chromeos/arc/arc_policy_bridge.h#newcode8 chrome/browser/chromeos/arc/arc_policy_bridge.h:8: #include <string> Nit: No longer used.
4 years, 8 months ago (2016-04-06 11:42:44 UTC) #3
phweiss
https://codereview.chromium.org/1864523002/diff/1/chrome/browser/chromeos/arc/arc_policy_bridge.h File chrome/browser/chromeos/arc/arc_policy_bridge.h (right): https://codereview.chromium.org/1864523002/diff/1/chrome/browser/chromeos/arc/arc_policy_bridge.h#newcode8 chrome/browser/chromeos/arc/arc_policy_bridge.h:8: #include <string> On 2016/04/06 11:42:44, bartfab (slow) wrote: > ...
4 years, 8 months ago (2016-04-06 13:23:03 UTC) #4
bartfab (slow)
lgtm
4 years, 8 months ago (2016-04-06 13:26:49 UTC) #5
phweiss
Hi, ptal
4 years, 8 months ago (2016-04-06 14:16:29 UTC) #7
Luis Héctor Chávez
lgtm https://codereview.chromium.org/1864523002/diff/20001/chrome/browser/chromeos/arc/arc_policy_bridge.cc File chrome/browser/chromeos/arc/arc_policy_bridge.cc (right): https://codereview.chromium.org/1864523002/diff/20001/chrome/browser/chromeos/arc/arc_policy_bridge.cc#newcode47 chrome/browser/chromeos/arc/arc_policy_bridge.cc:47: } // anonymous namespace nit: "} // namespace" ...
4 years, 8 months ago (2016-04-06 15:36:15 UTC) #8
phweiss
ptal again, the json syntax was wrong, ArcApplicationPolicy is now parsed and used as dictionary ...
4 years, 8 months ago (2016-04-06 17:39:24 UTC) #10
Nikita (slow)
lgtm https://codereview.chromium.org/1864523002/diff/40001/chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc File chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc (right): https://codereview.chromium.org/1864523002/diff/40001/chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc#newcode87 chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc:87: "}]" nit: add extra top level policy "defaultPermissionPolicy": ...
4 years, 8 months ago (2016-04-06 17:52:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864523002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864523002/60001
4 years, 8 months ago (2016-04-07 11:30:46 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-07 11:36:04 UTC) #19
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/e939d0314bc6ae82b04def09c58972ab121de51e Cr-Commit-Position: refs/heads/master@{#385712}
4 years, 8 months ago (2016-04-07 11:37:36 UTC) #21
bartfab (slow)
LGTM https://codereview.chromium.org/1864523002/diff/60001/chrome/browser/chromeos/arc/arc_policy_bridge.cc File chrome/browser/chromeos/arc/arc_policy_bridge.cc (right): https://codereview.chromium.org/1864523002/diff/60001/chrome/browser/chromeos/arc/arc_policy_bridge.cc#newcode56 chrome/browser/chromeos/arc/arc_policy_bridge.cc:56: std::unique_ptr<base::DictionaryValue> app_policy_dict = Nit: #include <memory> https://codereview.chromium.org/1864523002/diff/60001/chrome/browser/chromeos/arc/arc_policy_bridge.cc#newcode59 chrome/browser/chromeos/arc/arc_policy_bridge.cc:59: ...
4 years, 8 months ago (2016-04-07 12:46:29 UTC) #22
phweiss
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1869783006/ by phweiss@chromium.org. ...
4 years, 8 months ago (2016-04-07 19:18:54 UTC) #23
Nikita (slow)
Well that's unfortunate :( On Thu, 7 Apr 2016 at 20:18 <phweiss@chromium.org> wrote: > A ...
4 years, 8 months ago (2016-04-07 20:09:45 UTC) #24
bartfab (slow)
4 years, 8 months ago (2016-04-08 08:55:05 UTC) #25
Message was sent while issue was closed.
I am sure Philipp has the power to fix this and re-land :).

- Bartosz

On 04/07/2016 10:09 PM, Nikita Kostylev wrote:
> Well that's unfortunate :(
>
> On Thu, 7 Apr 2016 at 20:18 <phweiss@chromium.org
> <mailto:phweiss@chromium.org>> wrote:
>
>     A revert of this CL (patchset #4 id:60001) has been created in
>     https://codereview.chromium.org/1869783006/ by phweiss@chromium.org
>     <mailto:phweiss@chromium.org>.
>
>     The reason for reverting is: Unit tests are failing, see
>     https://bugs.chromium.org/p/chromium/issues/detail?id=601542.
>
>     https://codereview.chromium.org/1864523002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
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