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

Issue 2653823006: Include 'external' policies in grit output (admx, adm, doc etc.) (Closed)

Created:
3 years, 11 months ago by ljusten (tachyonic)
Modified:
3 years, 3 months ago
Reviewers:
bartfab (slow)
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Include 'external' policies in grit output (admx, adm, doc etc.) External-type policies consist of a URL and a SHA-256 hash. Right now, they can only be set through cloud policy, but not, for instance, through Active Directory. This CL allows that. Admins will have to calculate the SHA-256 hash of the URL themselves, e.g. using some widely available tools, and then specify the URL together with the hash as a JSON string. { "url": "<url>", "hash": "<SHA-256 hash>" } Right now, all external-type policies are Chrome OS-only, so that none of them shows up in ADMX templates, but this will change when Chrome OS specific ADMX templates are generated, see https://codereview.chromium.org/2481183002/. BUG=638560 TEST=Compiled, ran tests, temporarily modified an external-type policy to support all platforms, generated templates for all platforms, checked output in text editor, loaded ADMX templates into Active Directory tools. Review-Url: https://chromiumcodereview.appspot.com/2653823006 Cr-Commit-Position: refs/heads/master@{#503451} Committed: https://chromium.googlesource.com/chromium/src/+/46a334169f967102881de54282c993a33641e658

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Tests! #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Whitespace fixes #

Patch Set 7 : Whitespace fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -80 lines) Patch
M components/policy/tools/template_writers/writers/adm_writer.py View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M components/policy/tools/template_writers/writers/adm_writer_unittest.py View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
M components/policy/tools/template_writers/writers/adml_writer.py View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M components/policy/tools/template_writers/writers/adml_writer_unittest.py View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M components/policy/tools/template_writers/writers/admx_writer.py View 1 2 3 4 3 chunks +4 lines, -6 lines 0 comments Download
M components/policy/tools/template_writers/writers/admx_writer_unittest.py View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M components/policy/tools/template_writers/writers/doc_writer.py View 1 2 3 4 10 chunks +50 lines, -47 lines 0 comments Download
M components/policy/tools/template_writers/writers/doc_writer_unittest.py View 1 2 3 4 5 2 chunks +112 lines, -0 lines 0 comments Download
M components/policy/tools/template_writers/writers/json_writer.py View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M components/policy/tools/template_writers/writers/json_writer_unittest.py View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M components/policy/tools/template_writers/writers/plist_strings_writer.py View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M components/policy/tools/template_writers/writers/plist_writer.py View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M components/policy/tools/template_writers/writers/plist_writer_unittest.py View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M components/policy/tools/template_writers/writers/reg_writer.py View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M components/policy/tools/template_writers/writers/reg_writer_unittest.py View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
ljusten (tachyonic)
We'd like to support the 3 'external' policies (avatar image and device/user wallpaper) we have ...
3 years, 11 months ago (2017-01-26 09:55:08 UTC) #2
bartfab (slow)
lgtm https://codereview.chromium.org/2653823006/diff/1/tools/grit/grit/format/policy_templates/writers/json_writer.py File tools/grit/grit/format/policy_templates/writers/json_writer.py (left): https://codereview.chromium.org/2653823006/diff/1/tools/grit/grit/format/policy_templates/writers/json_writer.py#oldcode47 tools/grit/grit/format/policy_templates/writers/json_writer.py:47: # This type can only be set through ...
3 years, 10 months ago (2017-02-13 13:39:00 UTC) #3
Nico
tests?
3 years, 10 months ago (2017-02-13 15:39:31 UTC) #4
ljusten (tachyonic)
Nico, PTAL. https://codereview.chromium.org/2653823006/diff/1/tools/grit/grit/format/policy_templates/writers/json_writer.py File tools/grit/grit/format/policy_templates/writers/json_writer.py (left): https://codereview.chromium.org/2653823006/diff/1/tools/grit/grit/format/policy_templates/writers/json_writer.py#oldcode47 tools/grit/grit/format/policy_templates/writers/json_writer.py:47: # This type can only be set ...
3 years, 10 months ago (2017-02-21 09:52:45 UTC) #5
ljusten (tachyonic)
Trying to see if peeps are on vacation, please ignore.
3 years, 5 months ago (2017-06-30 14:06:39 UTC) #11
ljusten (tachyonic)
Nevermind
3 years, 5 months ago (2017-06-30 14:07:07 UTC) #13
Nico
You can check https://c/username to see vacation calendars On Jun 30, 2017 10:07 AM, <ljusten@chromium.org> ...
3 years, 5 months ago (2017-06-30 14:11:05 UTC) #14
ljusten (tachyonic)
I'll add support for Linux external policies in a follow-up CL.
3 years, 3 months ago (2017-09-21 14:53:01 UTC) #16
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/2653823006/120001
3 years, 3 months ago (2017-09-21 14:53:32 UTC) #19
commit-bot: I haz the power
3 years, 3 months ago (2017-09-21 15:13:26 UTC) #22
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/46a334169f967102881de54282c9...

Powered by Google App Engine
This is Rietveld 408576698