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

Issue 6409040: New policy protobuf protocol. (Closed)

Created:
9 years, 10 months ago by Jakob Kummerow
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, cbentzel+watch_chromium.org, amit
Visibility:
Public.

Description

New policy protobuf protocol. - cloud_policy.proto autogenerated from policy_templates.json - C++ method decoding the protobuf autogenerated from policy_templates.json - changed policy fetching mechanism to fetch new-style policy protobufs BUG=68309, chromium-os:11253, chromium-os:11255 TEST=CloudPolicyCacheTest.*; also manual test against python testserver Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75082

Patch Set 1 #

Patch Set 2 : Ready for review! #

Total comments: 73

Patch Set 3 : address feedback; fix gyp files #

Total comments: 44

Patch Set 4 : address comments #

Total comments: 10

Patch Set 5 : fix build on mac and win; address comments #

Total comments: 24

Patch Set 6 : address comments #

Total comments: 18

Patch Set 7 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2155 lines, -1337 lines) Patch
A chrome/app/policy/cloud_policy_codegen.gyp View 1 2 3 4 5 1 chunk +199 lines, -0 lines 0 comments Download
M chrome/app/policy/policy_templates.gypi View 1 2 3 4 1 chunk +1 line, -91 lines 0 comments Download
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 6 63 chunks +84 lines, -13 lines 0 comments Download
M chrome/app/policy/syntax_check_policy_template_json.py View 1 2 3 4 5 6 chunks +44 lines, -9 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/policy/cloud_policy_cache.h View 1 2 3 4 5 6 1 chunk +148 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_cache.cc View 1 2 3 4 5 6 1 chunk +429 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_cache_unittest.cc View 1 2 3 4 5 6 1 chunk +653 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 2 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_management_backend.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.cc View 1 2 3 8 chunks +81 lines, -53 lines 0 comments Download
M chrome/browser/policy/device_management_backend_mock.h View 1 1 chunk +1 line, -0 lines 0 comments Download
D chrome/browser/policy/device_management_policy_cache.h View 1 2 1 chunk +0 lines, -94 lines 0 comments Download
D chrome/browser/policy/device_management_policy_cache.cc View 1 2 1 chunk +0 lines, -270 lines 0 comments Download
D chrome/browser/policy/device_management_policy_cache_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -321 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.h View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.cc View 1 2 3 4 5 6 8 chunks +48 lines, -16 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider_unittest.cc View 1 2 12 chunks +63 lines, -44 lines 0 comments Download
M chrome/browser/policy/mock_device_management_backend.h View 1 2 3 4 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/policy/profile_policy_context.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
D chrome/browser/policy/proto/cloud_policy.proto View 1 chunk +0 lines, -221 lines 0 comments Download
M chrome/browser/policy/proto/device_management_backend.proto View 1 2 3 4 6 chunks +85 lines, -47 lines 0 comments Download
M chrome/browser/policy/proto/device_management_local.proto View 1 2 1 chunk +8 lines, -4 lines 0 comments Download
D chrome/browser/policy/proto/device_management_proto.gyp View 1 2 1 chunk +0 lines, -81 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 21 chunks +3 lines, -20 lines 0 comments Download
M chrome/tools/build/generate_policy_source.py View 1 2 3 4 5 chunks +210 lines, -24 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/tools/testserver/device_management.py View 1 2 3 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Jakob Kummerow
FYI -- preview release. Not quite finished yet.
9 years, 10 months ago (2011-02-01 09:41:56 UTC) #1
Jakob Kummerow
It compiles, and CloudPolicyCacheTests are green :-) Please review.
9 years, 10 months ago (2011-02-01 16:15:51 UTC) #2
gfeher
Here is my first round, its mostly nits. http://codereview.chromium.org/6409040/diff/2001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/6409040/diff/2001/chrome/app/policy/policy_templates.json#newcode104 chrome/app/policy/policy_templates.json:104: 'protobuf_id': ...
9 years, 10 months ago (2011-02-02 08:42:45 UTC) #3
Mattias Nissler (ping if slow)
feedback! sorry for the delay. http://codereview.chromium.org/6409040/diff/2001/chrome/browser/policy/configuration_policy_provider.h File chrome/browser/policy/configuration_policy_provider.h (right): http://codereview.chromium.org/6409040/diff/2001/chrome/browser/policy/configuration_policy_provider.h#newcode17 chrome/browser/policy/configuration_policy_provider.h:17: // policy definitions. I'm ...
9 years, 10 months ago (2011-02-02 12:27:55 UTC) #4
Jakob Kummerow
Addressed your feedback. Please have another look. http://codereview.chromium.org/6409040/diff/2001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/6409040/diff/2001/chrome/app/policy/policy_templates.json#newcode104 chrome/app/policy/policy_templates.json:104: 'protobuf_id': 1, ...
9 years, 10 months ago (2011-02-03 14:36:52 UTC) #5
danno
LGTM with a few comments http://codereview.chromium.org/6409040/diff/10003/chrome/app/policy/policy_templates.gypi File chrome/app/policy/policy_templates.gypi (right): http://codereview.chromium.org/6409040/diff/10003/chrome/app/policy/policy_templates.gypi#newcode68 chrome/app/policy/policy_templates.gypi:68: 'hard_dependency': 1, you don't ...
9 years, 10 months ago (2011-02-03 15:31:37 UTC) #6
Mattias Nissler (ping if slow)
a couple of comments http://codereview.chromium.org/6409040/diff/10003/chrome/app/policy/syntax_check_policy_template_json.py File chrome/app/policy/syntax_check_policy_template_json.py (right): http://codereview.chromium.org/6409040/diff/10003/chrome/app/policy/syntax_check_policy_template_json.py#newcode98 chrome/app/policy/syntax_check_policy_template_json.py:98: of entries (i.e. no holes). ...
9 years, 10 months ago (2011-02-03 16:23:41 UTC) #7
Jakob Kummerow
Finally, another iteration :-) Please review. Note: I tested the protocol fallback mechanism manually against ...
9 years, 10 months ago (2011-02-08 16:15:43 UTC) #8
gfeher
Just some nits. http://codereview.chromium.org/6409040/diff/14001/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6409040/diff/14001/chrome/browser/policy/cloud_policy_cache.cc#newcode88 chrome/browser/policy/cloud_policy_cache.cc:88: void CloudPolicyCache::LoadPolicyFromFile() { Here and everywhere ...
9 years, 10 months ago (2011-02-09 17:50:43 UTC) #9
Jakob Kummerow
Fixed the build on Mac and Win (let's hope the try bots agree) and addressed ...
9 years, 10 months ago (2011-02-10 12:10:15 UTC) #10
Mark Mentovai
The .gyp and .gypi files look OK otherwise. http://codereview.chromium.org/6409040/diff/20001/chrome/app/policy/cloud_policy_codegen.gyp File chrome/app/policy/cloud_policy_codegen.gyp (right): http://codereview.chromium.org/6409040/diff/20001/chrome/app/policy/cloud_policy_codegen.gyp#newcode10 chrome/app/policy/cloud_policy_codegen.gyp:10: 'generate_policy_source_script': ...
9 years, 10 months ago (2011-02-10 18:42:18 UTC) #11
danno
LGTM with a few comments, and as discussed, please don't throw away policy on responses ...
9 years, 10 months ago (2011-02-11 11:00:42 UTC) #12
gfeher
http://codereview.chromium.org/6409040/diff/20001/chrome/browser/policy/cloud_policy_cache.h File chrome/browser/policy/cloud_policy_cache.h (right): http://codereview.chromium.org/6409040/diff/20001/chrome/browser/policy/cloud_policy_cache.h#newcode138 chrome/browser/policy/cloud_policy_cache.h:138: bool has_device_policy_; It looks to me that you are ...
9 years, 10 months ago (2011-02-11 20:29:42 UTC) #13
Jakob Kummerow
Thank you for your reviews, everyone. Danno: are you OK with my responses to your ...
9 years, 10 months ago (2011-02-14 16:14:26 UTC) #14
Mattias Nissler (ping if slow)
my 2 cents. http://codereview.chromium.org/6409040/diff/38001/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6409040/diff/38001/chrome/browser/policy/cloud_policy_cache.cc#newcode310 chrome/browser/policy/cloud_policy_cache.cc:310: } Is there anything wrong with ...
9 years, 10 months ago (2011-02-15 10:46:39 UTC) #15
Jakob Kummerow
Mattias: LGTY? Gabor: ping? http://codereview.chromium.org/6409040/diff/38001/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6409040/diff/38001/chrome/browser/policy/cloud_policy_cache.cc#newcode310 chrome/browser/policy/cloud_policy_cache.cc:310: } On 2011/02/15 10:46:39, Mattias ...
9 years, 10 months ago (2011-02-15 14:22:00 UTC) #16
Mattias Nissler (ping if slow)
LGTM pending trybot happiness and the declaration change you missed. http://codereview.chromium.org/6409040/diff/38001/chrome/browser/policy/cloud_policy_cache.h File chrome/browser/policy/cloud_policy_cache.h (right): http://codereview.chromium.org/6409040/diff/38001/chrome/browser/policy/cloud_policy_cache.h#newcode35 ...
9 years, 10 months ago (2011-02-15 14:55:19 UTC) #17
gfeher
9 years, 10 months ago (2011-02-15 14:56:12 UTC) #18
I have no more comments on this.

Powered by Google App Engine
This is Rietveld 408576698