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 6840014: Support decoding GenericNamedValue based policy. (Closed)

Created:
9 years, 8 months ago by Jakob Kummerow
Modified:
9 years, 6 months ago
CC:
chromium-reviews, pastarmovj
Visibility:
Public.

Description

Support decoding GenericNamedValue based policy. Even if it arrives in the ChromeSettingsProto message where Chrome expects to find explicitly typed policy. This is necessary for as long as CPanel/D3 deliver old-style policy. We include this fix on the client side to make a corresponding workaround in DMServer unnecessary. BUG=chromium-os:14102 TEST=UserPolicyCacheTest.OldStylePolicy; manual test against DMServer without the server-side workaround Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81729

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments; fix browser_tests #

Total comments: 1

Patch Set 3 : fix unit test broken by patch set 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -118 lines) Patch
M chrome/app/policy/cloud_policy_codegen.gyp View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_service_browsertest.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/policy/device_management_service_unittest.cc View 1 chunk +0 lines, -55 lines 0 comments Download
M chrome/browser/policy/proto/device_management_backend.proto View 2 chunks +0 lines, -55 lines 0 comments Download
A chrome/browser/policy/proto/old_generic_format.proto View 1 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_policy_cache.h View 1 2 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_policy_cache.cc View 1 2 chunks +141 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_policy_cache_unittest.cc View 1 2 2 chunks +38 lines, -0 lines 0 comments Download
M net/tools/testserver/device_management.py View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Jakob Kummerow
PTAL.
9 years, 8 months ago (2011-04-13 14:03:52 UTC) #1
Mattias Nissler (ping if slow)
A high-level comment. Also, there seems to be a broken test case. http://codereview.chromium.org/6840014/diff/1/chrome/browser/policy/user_policy_cache.cc File chrome/browser/policy/user_policy_cache.cc ...
9 years, 8 months ago (2011-04-13 17:53:02 UTC) #2
Jakob Kummerow
http://codereview.chromium.org/6840014/diff/1/chrome/browser/policy/user_policy_cache.cc File chrome/browser/policy/user_policy_cache.cc (right): http://codereview.chromium.org/6840014/diff/1/chrome/browser/policy/user_policy_cache.cc#newcode153 chrome/browser/policy/user_policy_cache.cc:153: MaybeDecodeOldstylePolicy(policy, mandatory, recommended); On 2011/04/13 17:53:02, Mattias Nissler wrote: ...
9 years, 8 months ago (2011-04-14 17:17:00 UTC) #3
Mattias Nissler (ping if slow)
9 years, 8 months ago (2011-04-14 17:33:45 UTC) #4
LGTM.

Can you make sure we test this against a server to verify?

http://codereview.chromium.org/6840014/diff/11/chrome/browser/policy/user_pol...
File chrome/browser/policy/user_policy_cache.h (right):

http://codereview.chromium.org/6840014/diff/11/chrome/browser/policy/user_pol...
chrome/browser/policy/user_policy_cache.h:44: // The following methods are
needed to support old-style policy and can
overly-nitty nit: In C++, we call them member functions :)

Powered by Google App Engine
This is Rietveld 408576698