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

Issue 2726103004: Generate code for encoding cloud policy protobufs (Closed)

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

Description

Generate code for encoding cloud policy protobufs Modifies the script that generates code from policy_templates.json to output policy code that make it easy to iterate over all user policies to encode data in a cloud policy protobuf. The code is not used in Chromium. It will be used in Chrome OS's authpolicy project. Right now, authpolicy uses similar, checked in code, see policy_keys and in user_policy_encoder_gen.cc platform2/authpolicy/policy. This CL is implemented in Chromium, as opposed to a script in Chrome OS, to facilitate maintainance. A script in Chrome OS would have many dependencies on the Chromium script and it would be messy to maintain. Changing the script in Chromium cannot break Chrome OS because it is guarded by an uprev step in the protofiles project. BUG=chromium:659020, chromium:659078 TEST=Compiled Chromium, tested autogenerated code in Chrome OS Review-Url: https://codereview.chromium.org/2726103004 Cr-Commit-Position: refs/heads/master@{#460056} Committed: https://chromium.googlesource.com/chromium/src/+/dc39ee6eb556261f1bcff11bf658eacea0ee4572

Patch Set 1 #

Total comments: 12

Patch Set 2 : Rebase #

Patch Set 3 : Incorporated emaxx's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -24 lines) Patch
M components/policy/tools/generate_policy_source.py View 1 2 18 chunks +142 lines, -24 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
ljusten (tachyonic)
3 years, 9 months ago (2017-03-02 14:38:34 UTC) #2
ljusten (tachyonic)
Sample generated code: ************************************************** .h ************************************************** // // DO NOT MODIFY THIS FILE DIRECTLY! // ...
3 years, 9 months ago (2017-03-02 14:42:42 UTC) #3
emaxx
LGTM with nits https://codereview.chromium.org/2726103004/diff/1/components/policy/tools/generate_policy_source.py File components/policy/tools/generate_policy_source.py (right): https://codereview.chromium.org/2726103004/diff/1/components/policy/tools/generate_policy_source.py#newcode1119 components/policy/tools/generate_policy_source.py:1119: POLICY_DECODER_CPP_HEAD = ''' nit: Add word ...
3 years, 9 months ago (2017-03-02 16:56:15 UTC) #4
ljusten (tachyonic)
Thanks Maksim, I've incorporated your comments. Julian, can I go ahead and submit this? https://codereview.chromium.org/2726103004/diff/1/components/policy/tools/generate_policy_source.py ...
3 years, 9 months ago (2017-03-16 23:45:27 UTC) #5
pastarmovj
Seems like you marked all comments as done but haven't uploaded a new patch-set?
3 years, 9 months ago (2017-03-17 07:17:57 UTC) #6
ljusten (tachyonic)
PTAL. I accidentally uploaded it to another Rietveld issue. Can't wait until we switch to ...
3 years, 9 months ago (2017-03-18 19:45:47 UTC) #8
pastarmovj
lgtm
3 years, 9 months ago (2017-03-27 06:39:15 UTC) #9
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/2726103004/60001
3 years, 9 months ago (2017-03-27 08:17:31 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/336306)
3 years, 9 months ago (2017-03-27 09:35:29 UTC) #14
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/2726103004/60001
3 years, 9 months ago (2017-03-28 07:49:09 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-28 10:40:09 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/dc39ee6eb556261f1bcff11bf658...

Powered by Google App Engine
This is Rietveld 408576698