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

Issue 11415094: Split UserCloudPolicyManager implementation. (Closed)

Created:
8 years, 1 month ago by Mattias Nissler (ping if slow)
Modified:
8 years ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Split UserCloudPolicyManager implementation. Create different implementations for desktop Chrome / CrOS, and change initialization to keep the CrOS version in BrowserPolicyConnector instead of the Profile. BUG=chromium:108928 TEST=compiles and passes tests, cloud policy works as before. TBR=phajdan.jr@chromium.org,ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170742

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase. #

Patch Set 4 : Bring back ProxyPolicyProvider, fix local_state policy provider, fix Joao's fine CloudPolicyTest. #

Total comments: 58

Patch Set 5 : Crazy ProfileKeyedService hackery. #

Total comments: 16

Patch Set 6 : Rebae #

Total comments: 14

Patch Set 7 : Address comments. #

Patch Set 8 : Adjust comment. #

Patch Set 9 : Rebase. #

Total comments: 2

Patch Set 10 : Rebase. #

Patch Set 11 : Fix DeviceCloudPolicyManagerChromeOSTest.EnrolledDevice failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+635 lines, -714 lines) Patch
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/login/policy_oauth_fetcher.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 2 3 4 5 4 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 7 8 9 chunks +50 lines, -56 lines 0 comments Download
M chrome/browser/policy/cloud_policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/policy/cloud_policy_manager.h View 1 2 3 4 5 6 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/policy/cloud_policy_manager.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/policy/cloud_policy_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 12 chunks +39 lines, -43 lines 0 comments Download
M chrome/browser/policy/cloud_policy_store.h View 1 2 3 4 2 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/policy/cloud_policy_store.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/policy/device_cloud_policy_manager_chromeos.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/device_cloud_policy_manager_chromeos.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_cloud_policy_store_chromeos.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/policy/device_cloud_policy_store_chromeos.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/policy/mock_cloud_policy_store.h View 1 chunk +0 lines, -2 lines 0 comments Download
A + chrome/browser/policy/mock_user_cloud_policy_store.h View 2 chunks +9 lines, -9 lines 0 comments Download
A chrome/browser/policy/mock_user_cloud_policy_store.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_manager.h View 1 2 3 4 5 6 4 chunks +16 lines, -66 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_manager.cc View 1 2 3 4 5 6 2 chunks +19 lines, -97 lines 0 comments Download
A chrome/browser/policy/user_cloud_policy_manager_chromeos.h View 1 2 3 4 1 chunk +80 lines, -0 lines 0 comments Download
A + chrome/browser/policy/user_cloud_policy_manager_chromeos.cc View 6 chunks +23 lines, -37 lines 0 comments Download
A + chrome/browser/policy/user_cloud_policy_manager_chromeos_unittest.cc View 6 chunks +11 lines, -30 lines 0 comments Download
A chrome/browser/policy/user_cloud_policy_manager_factory.h View 1 2 3 4 5 6 7 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/policy/user_cloud_policy_manager_factory.cc View 1 2 3 4 5 6 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_manager_unittest.cc View 1 2 3 4 5 chunks +7 lines, -100 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store.h View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store.cc View 4 chunks +19 lines, -21 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_chromeos.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/policy/user_cloud_policy_store_chromeos.cc View 1 2 3 4 3 chunks +0 lines, -33 lines 0 comments Download
M chrome/browser/policy/user_policy_signin_service.h View 1 2 3 4 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/policy/user_policy_signin_service.cc View 1 2 3 4 7 chunks +30 lines, -24 lines 0 comments Download
M chrome/browser/policy/user_policy_signin_service_factory.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/user_policy_signin_service_unittest.cc View 1 2 3 4 5 6 14 chunks +28 lines, -24 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 4 chunks +18 lines, -20 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 chunks +1 line, -11 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 6 chunks +2 lines, -20 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Mattias Nissler (ping if slow)
Here's my attempt at de-tangling the UserCloudPolicyManager stuff on desktop vs. cros. Comments welcome.
8 years, 1 month ago (2012-11-21 10:47:18 UTC) #1
Joao da Silva
Looks good to me. Are we ok with removing support to wait for the initial ...
8 years, 1 month ago (2012-11-21 17:06:34 UTC) #2
Andrew T Wilson (Slow)
LGTM with some comments that you can address or ignore as you deem appropriate. https://codereview.chromium.org/11415094/diff/7001/chrome/browser/policy/cloud_policy_manager.h ...
8 years, 1 month ago (2012-11-21 17:34:23 UTC) #3
Mattias Nissler (ping if slow)
Hey guys, I made a major change to enable treating UserCloudPolicyManager (mostly) as a ProfileKeyedService. ...
8 years ago (2012-11-22 20:51:59 UTC) #4
Joao da Silva
It'd be cool if the policy manager were owned by the factory, but there's no ...
8 years ago (2012-11-23 10:08:12 UTC) #5
Andrew T Wilson (Slow)
So, converting to a PKS is crazy, but I like it - I'd just like ...
8 years ago (2012-11-23 15:04:20 UTC) #6
Mattias Nissler (ping if slow)
Thanks for the helpful comments. Drew: Regarding the PKS dependency graph vs. PolicyService, UCPM and ...
8 years ago (2012-11-23 17:36:06 UTC) #7
Mattias Nissler (ping if slow)
Elliot: Please take a look at profile_impl.{h,cc} and user_cloud_policy_manager_factory.{h,cc}, check the comment on ownership and ...
8 years ago (2012-11-23 17:38:29 UTC) #8
Elliot Glaysher
After reading both the comments and the code a few times, I'm still not sure ...
8 years ago (2012-11-26 19:18:30 UTC) #9
Mattias Nissler (ping if slow)
On 2012/11/26 19:18:30, Elliot Glaysher wrote: > After reading both the comments and the code ...
8 years ago (2012-11-27 11:48:14 UTC) #10
Elliot Glaysher
https://codereview.chromium.org/11415094/diff/10047/chrome/browser/policy/user_cloud_policy_manager_factory.cc File chrome/browser/policy/user_cloud_policy_manager_factory.cc (right): https://codereview.chromium.org/11415094/diff/10047/chrome/browser/policy/user_cloud_policy_manager_factory.cc#newcode59 chrome/browser/policy/user_cloud_policy_manager_factory.cc:59: manager->Shutdown(); So if I understand correctly, ProfileShutdown is really ...
8 years ago (2012-11-27 23:31:22 UTC) #11
Mattias Nissler (ping if slow)
https://codereview.chromium.org/11415094/diff/10047/chrome/browser/policy/user_cloud_policy_manager_factory.cc File chrome/browser/policy/user_cloud_policy_manager_factory.cc (right): https://codereview.chromium.org/11415094/diff/10047/chrome/browser/policy/user_cloud_policy_manager_factory.cc#newcode59 chrome/browser/policy/user_cloud_policy_manager_factory.cc:59: manager->Shutdown(); On 2012/11/27 23:31:22, Elliot Glaysher wrote: > So ...
8 years ago (2012-11-28 09:47:06 UTC) #12
Elliot Glaysher
On 2012/11/28 09:47:06, Mattias Nissler wrote: > Also, assuming that we're still willing to make ...
8 years ago (2012-11-28 18:37:55 UTC) #13
Mattias Nissler (ping if slow)
On 2012/11/28 18:37:55, Elliot Glaysher wrote: > On 2012/11/28 09:47:06, Mattias Nissler wrote: > > ...
8 years ago (2012-11-29 16:00:37 UTC) #14
Elliot Glaysher
On 2012/11/29 16:00:37, Mattias Nissler wrote: > On 2012/11/28 18:37:55, Elliot Glaysher wrote: > > ...
8 years ago (2012-11-29 20:57:10 UTC) #15
Mattias Nissler (ping if slow)
+Nikita for chrome/browser/chromeos/login OWNERS approval.
8 years ago (2012-11-30 15:09:05 UTC) #16
Nikita (slow)
lgtm
8 years ago (2012-11-30 15:11:42 UTC) #17
Mattias Nissler (ping if slow)
On 2012/11/29 20:57:10, Elliot Glaysher wrote: > On 2012/11/29 16:00:37, Mattias Nissler wrote: > > ...
8 years ago (2012-11-30 16:53:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/11415094/8047
8 years ago (2012-12-03 11:24:46 UTC) #19
commit-bot: I haz the power
Presubmit check for 11415094-8047 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-03 11:25:11 UTC) #20
Mattias Nissler (ping if slow)
+ phajdan.jr@, ben@ to TBR for chrome/test and gyp changes, respectively.
8 years ago (2012-12-03 11:57:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/11415094/8047
8 years ago (2012-12-03 11:57:27 UTC) #22
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) ash_unittests
8 years ago (2012-12-03 13:43:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/11415094/8047
8 years ago (2012-12-03 13:57:13 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) ash_unittests
8 years ago (2012-12-03 14:38:57 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/11415094/8047
8 years ago (2012-12-03 15:11:54 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-03 15:25:10 UTC) #27
commit-bot: I haz the power
8 years ago (2012-12-03 15:31:46 UTC) #28

Powered by Google App Engine
This is Rietveld 408576698