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

Issue 9109009: Introduce CloudPolicyClient (Closed)

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

Description

Introduce CloudPolicyClient This is part of a clean up of the policy code. CloudPolicyClient moves the core policy interactions into a single class with a well defined interface. Subsequent CLs will remove CloudPolicyController and DeviceTokenFetcher and introduce cleaner separation of policy fetching and caching. BUG=chromium:108928 TEST=Compiles and passes tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=138873

Patch Set 1 #

Patch Set 2 : Clean up MockDeviceManagementService #

Patch Set 3 : Fix clang build. #

Total comments: 12

Patch Set 4 : Iterate, rebase. #

Patch Set 5 : Address comments. #

Total comments: 9

Patch Set 6 : Iterate, rebase. #

Patch Set 7 : Rebase #

Patch Set 8 : Address comments #

Patch Set 9 : rebase #

Total comments: 31

Patch Set 10 : Address comments, rebase. #

Patch Set 11 : Restore DCHECKS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+892 lines, -58 lines) Patch
M chrome/browser/policy/auto_enrollment_client_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +26 lines, -25 lines 0 comments Download
A chrome/browser/policy/cloud_policy_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +207 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +238 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_client_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +340 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/device_token_fetcher_unittest.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/policy/mock_device_management_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/policy/mock_device_management_service.cc View 1 2 3 4 5 6 7 3 chunks +26 lines, -3 lines 0 comments Download
A chrome/browser/policy/policy_constants.h View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_map.h View 1 2 3 4 5 6 7 1 chunk +1 line, -21 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Mattias Nissler (ping if slow)
Here's a first cut at CloudPolicyClient, early comments appreciated.
8 years, 11 months ago (2012-01-05 11:11:54 UTC) #1
Joao da Silva
Looks good, I like a lot how much simpler it is to follow :-) I'm ...
8 years, 11 months ago (2012-01-05 15:35:00 UTC) #2
Mattias Nissler (ping if slow)
Here's the current version of this code right from my file system :) Nothing new, ...
8 years, 8 months ago (2012-04-16 14:28:38 UTC) #3
Joao da Silva
Looks good! Let me know once you plan to land it, and I'll look for ...
8 years, 8 months ago (2012-04-16 23:45:00 UTC) #4
Mattias Nissler (ping if slow)
Here's a new version that should be good for a proper review. http://codereview.chromium.org/9109009/diff/11003/chrome/browser/policy/cloud_policy_client.cc File chrome/browser/policy/cloud_policy_client.cc ...
8 years, 7 months ago (2012-05-22 14:05:25 UTC) #5
Joao da Silva
lgtm after cleaning up the nits. I've made a couple of other suggestions that's really ...
8 years, 7 months ago (2012-05-22 20:59:30 UTC) #6
Joao da Silva
Additional comments for the unit test. http://codereview.chromium.org/9109009/diff/30015/chrome/browser/policy/cloud_policy_client_unittest.cc File chrome/browser/policy/cloud_policy_client_unittest.cc (right): http://codereview.chromium.org/9109009/diff/30015/chrome/browser/policy/cloud_policy_client_unittest.cc#newcode23 chrome/browser/policy/cloud_policy_client_unittest.cc:23: namespace { Nit: ...
8 years, 7 months ago (2012-05-22 21:23:36 UTC) #7
Mattias Nissler (ping if slow)
Thanks for the review, new version is up. Please take another look; the only significant ...
8 years, 7 months ago (2012-05-24 10:12:01 UTC) #8
Joao da Silva
lgtm! http://codereview.chromium.org/9109009/diff/30015/chrome/browser/policy/cloud_policy_client.cc File chrome/browser/policy/cloud_policy_client.cc (right): http://codereview.chromium.org/9109009/diff/30015/chrome/browser/policy/cloud_policy_client.cc#newcode64 chrome/browser/policy/cloud_policy_client.cc:64: On 2012/05/24 10:12:01, Mattias Nissler wrote: > On ...
8 years, 7 months ago (2012-05-24 15:00:47 UTC) #9
Mattias Nissler (ping if slow)
Thanks for the review. Ticking the commit checkbox... http://codereview.chromium.org/9109009/diff/30015/chrome/browser/policy/cloud_policy_client.cc File chrome/browser/policy/cloud_policy_client.cc (right): http://codereview.chromium.org/9109009/diff/30015/chrome/browser/policy/cloud_policy_client.cc#newcode64 chrome/browser/policy/cloud_policy_client.cc:64: On ...
8 years, 7 months ago (2012-05-24 18:01:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/9109009/36004
8 years, 7 months ago (2012-05-24 18:01:27 UTC) #11
commit-bot: I haz the power
8 years, 7 months ago (2012-05-24 20:02:00 UTC) #12
Change committed as 138873

Powered by Google App Engine
This is Rietveld 408576698