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

Issue 6537020: Update policy backend and testserver for the newest policy protocol (Closed)

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

Description

Update policy backend and testserver for the latest policy protocol BUG=chromium-os:11253, chromium-os:11254, chromium-os:11255 TEST=DeviceManagementServiceIntegrationTest.WithTestServer Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76455

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Patch Set 4 : " #

Patch Set 5 : 5 #

Total comments: 28

Patch Set 6 : address comments, rebase, update tests #

Patch Set 7 : fix unit tests and chromeos crashes #

Total comments: 13

Patch Set 8 : address Jakob's comments #

Patch Set 9 : remove debugg junk from device_management.py (and address Jakob's comment - now for real) #

Patch Set 10 : final tweaks, as discussed offline with Jakob #

Patch Set 11 : it was a bad idea to zero out machine_id_ in the prev. patchset #

Total comments: 17

Patch Set 12 : addressed Mattias' comments #

Patch Set 13 : removed reliance on NotificationType::OWNERSHIP_TAKEN #

Patch Set 14 : fix device policies #

Patch Set 15 : more last minute changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+716 lines, -523 lines) Patch
M chrome/browser/policy/cloud_policy_cache.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +21 lines, -16 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_unittest.cc View 1 2 3 4 5 6 11 chunks +27 lines, -24 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller.h View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller.cc View 1 2 3 4 5 6 7 4 chunks +37 lines, -39 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller_unittest.cc View 1 2 3 4 5 6 7 13 chunks +59 lines, -48 lines 0 comments Download
M chrome/browser/policy/cloud_policy_identity_strategy.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/policy/device_management_backend.h View 3 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.h View 1 2 3 4 5 6 3 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/policy/device_management_backend_impl.cc View 1 2 3 4 5 6 3 chunks +2 lines, -48 lines 0 comments Download
M chrome/browser/policy/device_management_backend_mock.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/policy/device_policy_identity_strategy.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +29 lines, -5 lines 0 comments Download
M chrome/browser/policy/device_policy_identity_strategy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +106 lines, -20 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher.h View 1 2 3 4 5 6 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/policy/device_token_fetcher.cc View 1 2 3 4 5 6 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher_unittest.cc View 1 2 3 4 5 6 6 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/policy/mock_device_management_backend.h View 1 2 3 4 5 6 7 4 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/policy/proto/device_management_backend.proto View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +182 lines, -166 lines 0 comments Download
M chrome/browser/policy/proto/device_management_constants.h View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/policy/proto/device_management_constants.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/policy/proto/device_management_local.proto View 1 2 3 4 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.cc View 1 2 3 4 5 6 7 3 chunks +21 lines, -1 line 0 comments Download
M chrome/test/data/policy/device_management View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/tools/build/generate_policy_source.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/tools/testserver/device_management.py View 1 2 3 4 5 6 7 8 9 10 11 12 16 chunks +141 lines, -85 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
gfeher
This is still based on http://codereview.chromium.org/6520008/, but please take a high level-review on it. A ...
9 years, 10 months ago (2011-02-21 14:26:22 UTC) #1
Mattias Nissler (ping if slow)
Looks pretty good, just a fee comments. http://codereview.chromium.org/6537020/diff/9025/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6537020/diff/9025/chrome/browser/policy/cloud_policy_cache.cc#newcode84 chrome/browser/policy/cloud_policy_cache.cc:84: PersistPolicyTask( Any ...
9 years, 10 months ago (2011-02-21 14:55:27 UTC) #2
Jakob Kummerow
I heard you like fixing nits So I put some comments in your CL so ...
9 years, 10 months ago (2011-02-21 16:14:59 UTC) #3
gfeher
Thanks for the comments, I've addressed most of them and working on the rest. http://codereview.chromium.org/6537020/diff/9025/chrome/browser/policy/cloud_policy_cache.cc ...
9 years, 10 months ago (2011-02-22 15:57:29 UTC) #4
Mattias Nissler (ping if slow)
Answer the timestamp-related comments. http://codereview.chromium.org/6537020/diff/9025/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6537020/diff/9025/chrome/browser/policy/cloud_policy_cache.cc#newcode332 chrome/browser/policy/cloud_policy_cache.cc:332: policy_data.timestamp() / kPolicyResponseTimestampResolution); On 2011/02/22 ...
9 years, 10 months ago (2011-02-22 16:20:50 UTC) #5
gfeher
And now it's ready for review, again! http://codereview.chromium.org/6537020/diff/24001/net/tools/testserver/device_management.py File net/tools/testserver/device_management.py (right): http://codereview.chromium.org/6537020/diff/24001/net/tools/testserver/device_management.py#newcode66 net/tools/testserver/device_management.py:66: logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) I ...
9 years, 9 months ago (2011-02-25 20:36:35 UTC) #6
Jakob Kummerow
looks pretty good, just a few comments. http://codereview.chromium.org/6537020/diff/24001/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6537020/diff/24001/chrome/browser/policy/cloud_policy_cache.cc#newcode346 chrome/browser/policy/cloud_policy_cache.cc:346: LOG(WARNING) << ...
9 years, 9 months ago (2011-02-28 11:06:31 UTC) #7
gfeher
Thanks, addressed comments. http://codereview.chromium.org/6537020/diff/24001/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6537020/diff/24001/chrome/browser/policy/cloud_policy_cache.cc#newcode346 chrome/browser/policy/cloud_policy_cache.cc:346: LOG(WARNING) << "Failed to parse CloudPolicySettingsj ...
9 years, 9 months ago (2011-02-28 12:21:32 UTC) #8
Jakob Kummerow
LGTM (pending trybot happiness).
9 years, 9 months ago (2011-02-28 12:32:19 UTC) #9
gfeher
This is all green now. Mattias please take a look.
9 years, 9 months ago (2011-02-28 18:56:23 UTC) #10
Mattias Nissler (ping if slow)
just a couple of nits. http://codereview.chromium.org/6537020/diff/31029/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6537020/diff/31029/chrome/browser/policy/cloud_policy_cache.cc#newcode332 chrome/browser/policy/cloud_policy_cache.cc:332: DCHECK(timestamp); kill the DCHECK, ...
9 years, 9 months ago (2011-03-01 10:25:49 UTC) #11
gfeher
Addressed comments and removed the "ownership-claim" check from DevicePolicyIdentityStrategy. http://codereview.chromium.org/6537020/diff/31029/chrome/browser/policy/cloud_policy_cache.cc File chrome/browser/policy/cloud_policy_cache.cc (right): http://codereview.chromium.org/6537020/diff/31029/chrome/browser/policy/cloud_policy_cache.cc#newcode332 chrome/browser/policy/cloud_policy_cache.cc:332: ...
9 years, 9 months ago (2011-03-01 15:53:00 UTC) #12
Mattias Nissler (ping if slow)
LGTM pending trybots.
9 years, 9 months ago (2011-03-01 16:12:41 UTC) #13
gfeher
As discussed, I've done some last-minute changes.
9 years, 9 months ago (2011-03-01 18:03:52 UTC) #14
Mattias Nissler (ping if slow)
9 years, 9 months ago (2011-03-01 18:27:11 UTC) #15
still LGTM.

Powered by Google App Engine
This is Rietveld 408576698