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

Issue 10092010: Add CloudPolicyService (Closed)

Created:
8 years, 8 months ago by Mattias Nissler (ping if slow)
Modified:
8 years, 7 months ago
Reviewers:
Joao da Silva
CC:
chromium-reviews
Visibility:
Public.

Description

Add CloudPolicyService CloudPolicyService glues together a cloud policy client and a CloudPolicyStore, taking care of pushing policy to the store when new policy from the cloud arrived. It also handles coordination for policy refresh operations. BUG=chromium:108928 TEST=Unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139014

Patch Set 1 #

Total comments: 13

Patch Set 2 : iterate, rebase. #

Patch Set 3 : rebase, minor adustments #

Patch Set 4 : Address comments. #

Total comments: 18

Patch Set 5 : Address comments, rebase #

Total comments: 2

Patch Set 6 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+715 lines, -0 lines) Patch
A chrome/browser/policy/cloud_policy_service.h View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_service.cc View 1 2 3 4 1 chunk +131 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_service_unittest.cc View 1 2 3 4 1 chunk +200 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_store.h View 1 2 3 4 1 chunk +131 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_store.cc View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_cloud_policy_client.h View 1 2 3 4 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_cloud_policy_client.cc View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_cloud_policy_store.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/policy/mock_cloud_policy_store.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mattias Nissler (ping if slow)
I feel this is now far enough for sharing. Feedback is appreciated. Let me know ...
8 years, 8 months ago (2012-04-16 14:31:18 UTC) #1
Joao da Silva
Looks good! I'd like to see how you plan to add the missing pieces. http://codereview.chromium.org/10092010/diff/1/chrome/browser/policy/cloud_policy_service.cc ...
8 years, 8 months ago (2012-04-17 00:30:58 UTC) #2
Mattias Nissler (ping if slow)
Ready for a close look. http://codereview.chromium.org/10092010/diff/1/chrome/browser/policy/cloud_policy_service.cc File chrome/browser/policy/cloud_policy_service.cc (right): http://codereview.chromium.org/10092010/diff/1/chrome/browser/policy/cloud_policy_service.cc#newcode56 chrome/browser/policy/cloud_policy_service.cc:56: store_->Store(*policy); On 2012/04/17 00:30:58, ...
8 years, 7 months ago (2012-05-22 14:14:26 UTC) #3
Joao da Silva
http://codereview.chromium.org/10092010/diff/19002/chrome/browser/policy/cloud_policy_constants.h File chrome/browser/policy/cloud_policy_constants.h (right): http://codereview.chromium.org/10092010/diff/19002/chrome/browser/policy/cloud_policy_constants.h#newcode96 chrome/browser/policy/cloud_policy_constants.h:96: CLOUD_POLICY_STATUS_SUCCESS, Is this needed? Haven't found a use for ...
8 years, 7 months ago (2012-05-22 22:01:44 UTC) #4
Mattias Nissler (ping if slow)
All comments addressed, please take another look. http://codereview.chromium.org/10092010/diff/19002/chrome/browser/policy/cloud_policy_constants.h File chrome/browser/policy/cloud_policy_constants.h (right): http://codereview.chromium.org/10092010/diff/19002/chrome/browser/policy/cloud_policy_constants.h#newcode96 chrome/browser/policy/cloud_policy_constants.h:96: CLOUD_POLICY_STATUS_SUCCESS, On ...
8 years, 7 months ago (2012-05-24 10:12:24 UTC) #5
Joao da Silva
lgtm with a little nit http://codereview.chromium.org/10092010/diff/23002/chrome/browser/policy/mock_cloud_policy_store.h File chrome/browser/policy/mock_cloud_policy_store.h (right): http://codereview.chromium.org/10092010/diff/23002/chrome/browser/policy/mock_cloud_policy_store.h#newcode29 chrome/browser/policy/mock_cloud_policy_store.h:29: }; private: DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyStore)
8 years, 7 months ago (2012-05-24 15:06:18 UTC) #6
Mattias Nissler (ping if slow)
Thanks for the review. I'll commit this once the first part has landed. http://codereview.chromium.org/10092010/diff/23002/chrome/browser/policy/mock_cloud_policy_store.h File ...
8 years, 7 months ago (2012-05-24 18:05:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10092010/35002
8 years, 7 months ago (2012-05-25 08:32:27 UTC) #8
commit-bot: I haz the power
8 years, 7 months ago (2012-05-25 09:40:21 UTC) #9
Change committed as 139014

Powered by Google App Engine
This is Rietveld 408576698