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

Issue 10919131: Break out base functionality of UserCloudPolicyManager. (Closed)

Created:
8 years, 3 months ago by Mattias Nissler (ping if slow)
Modified:
8 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Break out base functionality of UserCloudPolicyManager. This change introduces a new base class, CloudPolicyManager, that contains the initialization/shutdown and policy serving logic which will be common to user-level and Chrome OS device-level policy. BUG=chromium:108928 TEST=unit tests TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155763

Patch Set 1 #

Total comments: 36

Patch Set 2 : Rebase, address comments, fix compilation. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -526 lines) Patch
A chrome/browser/policy/cloud_policy_manager.h View 1 1 chunk +92 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_manager.cc View 1 1 chunk +93 lines, -0 lines 0 comments Download
A + chrome/browser/policy/cloud_policy_manager_unittest.cc View 7 chunks +102 lines, -140 lines 2 comments Download
M chrome/browser/policy/cloud_policy_service.h View 1 3 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/policy/cloud_policy_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud_policy_service_unittest.cc View 7 chunks +32 lines, -33 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_manager.h View 1 3 chunks +11 lines, -38 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_manager.cc View 1 7 chunks +36 lines, -110 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_manager_unittest.cc View 1 7 chunks +6 lines, -192 lines 0 comments Download
M chrome/browser/policy/user_policy_signin_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mattias Nissler (ping if slow)
Another review coming here :)
8 years, 3 months ago (2012-09-06 19:23:19 UTC) #1
Joao da Silva
http://codereview.chromium.org/10919131/diff/1/chrome/browser/policy/cloud_policy_manager.cc File chrome/browser/policy/cloud_policy_manager.cc (right): http://codereview.chromium.org/10919131/diff/1/chrome/browser/policy/cloud_policy_manager.cc#newcode12 chrome/browser/policy/cloud_policy_manager.cc:12: #include "chrome/browser/policy/device_management_service.h" nit: not used http://codereview.chromium.org/10919131/diff/1/chrome/browser/policy/cloud_policy_manager.cc#newcode22 chrome/browser/policy/cloud_policy_manager.cc:22: store_->AddObserver(this); Swap ...
8 years, 3 months ago (2012-09-07 12:44:13 UTC) #2
Mattias Nissler (ping if slow)
Ready for another round, the try bots should be much greener as well. http://codereview.chromium.org/10919131/diff/1/chrome/browser/policy/cloud_policy_manager.cc File ...
8 years, 3 months ago (2012-09-07 13:12:59 UTC) #3
Joao da Silva
8 years, 3 months ago (2012-09-07 14:38:09 UTC) #4
Joao da Silva
lgtm
8 years, 3 months ago (2012-09-07 14:38:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10919131/13001
8 years, 3 months ago (2012-09-10 12:11:35 UTC) #6
commit-bot: I haz the power
Presubmit check for 10919131-13001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-10 12:11:40 UTC) #7
Mattias Nissler (ping if slow)
+ben to TBR for gyp changes.
8 years, 3 months ago (2012-09-10 12:53:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10919131/13001
8 years, 3 months ago (2012-09-10 12:53:29 UTC) #9
commit-bot: I haz the power
Presubmit check for 10919131-13001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-10 12:53:33 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/10919131/13001
8 years, 3 months ago (2012-09-10 13:16:57 UTC) #11
commit-bot: I haz the power
Try job failure for 10919131-13001 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-09-10 15:35:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10919131/13001
8 years, 3 months ago (2012-09-10 16:23:19 UTC) #13
commit-bot: I haz the power
Change committed as 155763
8 years, 3 months ago (2012-09-10 17:56:49 UTC) #14
Lei Zhang
https://chromiumcodereview.appspot.com/10919131/diff/13001/chrome/browser/policy/cloud_policy_manager_unittest.cc File chrome/browser/policy/cloud_policy_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/10919131/diff/13001/chrome/browser/policy/cloud_policy_manager_unittest.cc#newcode75 chrome/browser/policy/cloud_policy_manager_unittest.cc:75: Mock::VerifyAndClearExpectations(store_); Umm, this does not look right...
8 years, 1 month ago (2012-11-05 20:11:00 UTC) #15
Mattias Nissler (ping if slow)
8 years, 1 month ago (2012-11-06 09:13:28 UTC) #16
https://chromiumcodereview.appspot.com/10919131/diff/13001/chrome/browser/pol...
File chrome/browser/policy/cloud_policy_manager_unittest.cc (right):

https://chromiumcodereview.appspot.com/10919131/diff/13001/chrome/browser/pol...
chrome/browser/policy/cloud_policy_manager_unittest.cc:75:
Mock::VerifyAndClearExpectations(store_);
On 2012/11/05 20:11:00, Lei Zhang wrote:
> Umm, this does not look right...

Indeed, thanks for pointing out.

CL with the fix is here: http://codereview.chromium.org/11361120/

Powered by Google App Engine
This is Rietveld 408576698