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

Issue 10449071: Enable user policy handling through the new cloud policy stack. (Closed)

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

Description

Enable user policy handling through the new cloud policy stack. Implement UserCloudPolicyManager, which wraps an instance of the new cloud policy stack and implements the ConfigurationPolicyProvider interface. Hook it up in BrowserPolicyConnector to be used for user policy instead of the old code if enabled through a command line switch. BUG=chromium:108929 TEST=With --enable-cloud-policy-service, user policy on Chrome OS still works as before. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140519

Patch Set 1 #

Patch Set 2 : Implement unit tests. #

Patch Set 3 : Rebase. #

Total comments: 19

Patch Set 4 : Rebase, implement proxy provider. #

Total comments: 6

Patch Set 5 : Address comments #

Patch Set 6 : Rebase. #

Total comments: 1

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1110 lines, -138 lines) Patch
M chrome/browser/policy/browser_policy_connector.h View 1 2 3 4 5 6 6 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 10 chunks +123 lines, -70 lines 0 comments Download
M chrome/browser/policy/cloud_policy_service.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_service.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud_policy_service_unittest.cc View 8 chunks +26 lines, -28 lines 0 comments Download
M chrome/browser/policy/config_dir_policy_provider_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/mock_device_management_service.h View 1 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/policy/mock_device_management_service.cc View 1 2 3 4 chunks +72 lines, -20 lines 0 comments Download
A chrome/browser/policy/proxy_policy_provider.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/policy/proxy_policy_provider.cc View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/policy/proxy_policy_provider_unittest.cc View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/policy/user_cloud_policy_manager.h View 1 2 3 1 chunk +102 lines, -0 lines 0 comments Download
A chrome/browser/policy/user_cloud_policy_manager.cc View 1 2 3 1 chunk +202 lines, -0 lines 0 comments Download
A chrome/browser/policy/user_cloud_policy_manager_unittest.cc View 1 2 3 1 chunk +347 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_chromeos_unittest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mattias Nissler (ping if slow)
Hi Joao, here is the CL that finally enables this. Please take a look. There ...
8 years, 6 months ago (2012-06-01 09:27:18 UTC) #1
Joao da Silva
lgtm after fixing the nits. This is much better than the current cloud policy system. ...
8 years, 6 months ago (2012-06-01 12:27:47 UTC) #2
Mattias Nissler (ping if slow)
Here's the big CL again, this time with a proxy provider. I also have a ...
8 years, 6 months ago (2012-06-04 17:42:36 UTC) #3
Joao da Silva
http://codereview.chromium.org/10449071/diff/9004/chrome/browser/policy/user_cloud_policy_manager.h File chrome/browser/policy/user_cloud_policy_manager.h (right): http://codereview.chromium.org/10449071/diff/9004/chrome/browser/policy/user_cloud_policy_manager.h#newcode54 chrome/browser/policy/user_cloud_policy_manager.h:54: CloudPolicyService* cloud_policy_service() { return service_.get(); } On 2012/06/04 17:42:37, ...
8 years, 6 months ago (2012-06-05 07:21:46 UTC) #4
Mattias Nissler (ping if slow)
Addressed comments. Please take another look. http://codereview.chromium.org/10449071/diff/16001/chrome/browser/policy/browser_policy_connector.cc File chrome/browser/policy/browser_policy_connector.cc (right): http://codereview.chromium.org/10449071/diff/16001/chrome/browser/policy/browser_policy_connector.cc#newcode181 chrome/browser/policy/browser_policy_connector.cc:181: providers.push_back(user_cloud_policy_manager_.get()); On 2012/06/05 ...
8 years, 6 months ago (2012-06-05 10:27:21 UTC) #5
Joao da Silva
lgtm http://codereview.chromium.org/10449071/diff/27002/chrome/browser/policy/browser_policy_connector.h File chrome/browser/policy/browser_policy_connector.h (right): http://codereview.chromium.org/10449071/diff/27002/chrome/browser/policy/browser_policy_connector.h#newcode161 chrome/browser/policy/browser_policy_connector.h:161: // will will result in |handler_list_| being consulted ...
8 years, 6 months ago (2012-06-05 11:33:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10449071/41001
8 years, 6 months ago (2012-06-05 11:47:29 UTC) #7
commit-bot: I haz the power
8 years, 6 months ago (2012-06-05 12:52:36 UTC) #8
Change committed as 140519

Powered by Google App Engine
This is Rietveld 408576698