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

Issue 6532019: New policy protobuf protocol. (Closed)

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

Description

New policy protobuf protocol. (Third attempt to land http://codereview.chromium.org/6409040/ -- now without memory leaks) - cloud_policy.proto autogenerated from policy_templates.json - C++ method decoding the protobuf also 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=75259

Patch Set 1 #

Patch Set 2 : fix memory leaks by introducing PolicyMap #

Total comments: 16

Patch Set 3 : address comments #

Patch Set 4 : fix one more leak #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2230 lines, -1285 lines) Patch
A chrome/app/policy/cloud_policy_codegen.gyp View 1 1 chunk +204 lines, -0 lines 0 comments Download
M chrome/app/policy/policy_templates.gypi View 1 chunk +1 line, -91 lines 0 comments Download
M chrome/app/policy/policy_templates.json View 63 chunks +84 lines, -13 lines 0 comments Download
M chrome/app/policy/syntax_check_policy_template_json.py View 6 chunks +44 lines, -9 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/policy/cloud_policy_cache.h View 1 6 chunks +58 lines, -18 lines 0 comments Download
A chrome/browser/policy/cloud_policy_cache.cc View 1 2 1 chunk +414 lines, -0 lines 1 comment Download
A chrome/browser/policy/cloud_policy_cache_unittest.cc View 1 2 3 1 chunk +620 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_management_backend.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.h View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.cc View 8 chunks +81 lines, -53 lines 0 comments Download
M chrome/browser/policy/device_management_backend_mock.h View 1 chunk +1 line, -0 lines 0 comments Download
D chrome/browser/policy/device_management_policy_cache.cc View 1 chunk +0 lines, -270 lines 0 comments Download
D chrome/browser/policy/device_management_policy_cache_unittest.cc View 1 chunk +0 lines, -321 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.h View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.cc View 8 chunks +48 lines, -16 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider_unittest.cc View 12 chunks +63 lines, -44 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.cc View 1 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_store.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_store.cc View 1 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/browser/policy/mock_device_management_backend.h View 3 chunks +25 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_map.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_map.cc View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/policy/policy_map_unittest.cc View 1 2 1 chunk +68 lines, -0 lines 0 comments Download
M chrome/browser/policy/profile_policy_context.cc View 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 6 chunks +85 lines, -47 lines 0 comments Download
M chrome/browser/policy/proto/device_management_local.proto View 1 chunk +8 lines, -4 lines 0 comments Download
D chrome/browser/policy/proto/device_management_proto.gyp View 1 chunk +0 lines, -81 lines 0 comments Download
M chrome/chrome.gyp View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 5 chunks +3 lines, -6 lines 0 comments Download
M chrome/chrome_common.gypi View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_exe.gypi View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 22 chunks +4 lines, -20 lines 0 comments Download
M chrome/tools/build/generate_policy_source.py View 1 5 chunks +209 lines, -24 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 2 chunks +2 lines, -2 lines 0 comments Download
M net/net.gyp View 1 chunk +1 line, -1 line 0 comments Download
M net/tools/testserver/device_management.py View 3 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jakob Kummerow
One LGTM is enough, let's see who gets there first ;-) Patch set 1: Included ...
9 years, 10 months ago (2011-02-17 08:53:18 UTC) #1
Mattias Nissler (ping if slow)
here you go. http://codereview.chromium.org/6532019/diff/2001/chrome/browser/policy/policy_map.cc File chrome/browser/policy/policy_map.cc (right): http://codereview.chromium.org/6532019/diff/2001/chrome/browser/policy/policy_map.cc#newcode5 chrome/browser/policy/policy_map.cc:5: excess whitespace http://codereview.chromium.org/6532019/diff/2001/chrome/browser/policy/policy_map.h File chrome/browser/policy/policy_map.h (right): ...
9 years, 10 months ago (2011-02-17 09:27:20 UTC) #2
Jakob Kummerow
Thanks for the comments. I addressed them all. No new try jobs since there were ...
9 years, 10 months ago (2011-02-17 09:47:14 UTC) #3
danno
9 years, 10 months ago (2011-02-17 11:05:44 UTC) #4
LGTM with a nit.

http://codereview.chromium.org/6532019/diff/8001/chrome/browser/policy/cloud_...
File chrome/browser/policy/cloud_policy_cache.cc (right):

http://codereview.chromium.org/6532019/diff/8001/chrome/browser/policy/cloud_...
chrome/browser/policy/cloud_policy_cache.cc:180:
mandatory_policy_.Swap(&mandatory_policy);
Comment about using Swap to cleanup to old value of mandatory_policy_?

Powered by Google App Engine
This is Rietveld 408576698