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

Issue 6979011: Move user cloud policy to BrowserProcess. (Closed)

Created:
9 years, 7 months ago by sfeuz
Modified:
9 years, 6 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Move user cloud policy to BrowserProcess. This CL basically does the following things: * Remove final dependencies of ProfilePolicyConnector on Profile * Take ProfilePolicyConnector away from Profile and put it into BrowserPolicyConnector. * Make BrowserPolicyConnector instance persistant and allow to exchange the CloudPolicySubsystem backend instead. * Introduce a new CloudPolicyProvider which combines two (or more) CloudPolicyCacheBase backends and applies their policies in a well defined order. That is the order in which the CloudPolicyCacheBases appear in the List of CloudPolicyProvider determines the precedence, early Providers get applied first and block the applied policies for later Caches. * Handles ProxyPolicies in CloudPolicyProvider making the old infrastructure around MergingPolicyConnector obsolete. * Consequently this means that user cloud policy can now serve local_state. BUG=none TEST=Unittests CloudPolicyProvider.*

Patch Set 1 #

Total comments: 57

Patch Set 2 : Addressed comments by mnissler. Added unittest. #

Total comments: 112

Patch Set 3 : Rebase and hope everything still works. #

Patch Set 4 : Addressed comments by mnissler and joaodasilva. #

Patch Set 5 : Some cleanup. #

Total comments: 22

Patch Set 6 : Rebased and addressed comments by joaodasilva. #

Patch Set 7 : Handle alternative startup path on CrOS. #

Patch Set 8 : Handling alternative login-path on CrOS differently. Rebase. #

Total comments: 70

Patch Set 9 : Addressed comments by mnissler. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1097 lines, -949 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/base_login_display_host.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.cc View 1 2 3 4 5 6 7 8 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_temp_storage_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/user_image_view.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -17 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 2 3 4 5 6 7 8 3 chunks +73 lines, -25 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 7 8 8 chunks +183 lines, -46 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.h View 1 2 3 4 5 6 7 8 6 chunks +21 lines, -20 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.cc View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -69 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -3 lines 0 comments Download
A chrome/browser/policy/cloud_policy_provider.h View 1 2 3 4 5 6 7 8 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +145 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_provider_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +396 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -19 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 2 3 4 5 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -31 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 chunk +0 lines, -42 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.cc View 1 1 chunk +0 lines, -40 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface_unittest.cc View 1 2 3 1 chunk +0 lines, -57 lines 0 comments Download
D chrome/browser/policy/profile_policy_connector.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -106 lines 0 comments Download
D chrome/browser/policy/profile_policy_connector.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -174 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector_factory.h View 1 1 chunk +0 lines, -44 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector_factory.cc View 1 1 chunk +0 lines, -41 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector_unittest.cc View 1 2 3 1 chunk +0 lines, -57 lines 0 comments Download
M chrome/browser/policy/user_policy_cache.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/policy/user_policy_cache_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.h View 3 chunks +12 lines, -18 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.cc View 1 2 3 4 10 chunks +28 lines, -71 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/prefs/pref_service.h View 1 2 3 1 chunk +8 lines, -10 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 4 chunks +0 lines, -9 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
sfeuz
It is still work in progress but wanted to give you a chance to take ...
9 years, 7 months ago (2011-05-25 14:56:08 UTC) #1
Mattias Nissler (ping if slow)
did a very rough pass, but I guess it's good enough to keep you busy ...
9 years, 7 months ago (2011-05-26 10:20:19 UTC) #2
sfeuz
up for a new round. http://codereview.chromium.org/6979011/diff/1/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): http://codereview.chromium.org/6979011/diff/1/chrome/browser/browser_process.h#newcode69 chrome/browser/browser_process.h:69: class ProfilePolicyConnector; On 2011/05/26 ...
9 years, 6 months ago (2011-05-31 07:32:30 UTC) #3
Mattias Nissler (ping if slow)
Another round of comments. I guess we should sit down and talk about policy providers ...
9 years, 6 months ago (2011-05-31 14:14:19 UTC) #4
Joao da Silva
Big CL, took a while to review! :-) Mostly cosmetic changes here. We should discuss ...
9 years, 6 months ago (2011-05-31 14:50:23 UTC) #5
sfeuz
ok new round. two big changes (as discussed with mnissler offline) are: * Combine UserPolicyConnector ...
9 years, 6 months ago (2011-06-03 08:30:35 UTC) #6
Joao da Silva
Looks good, nice cleanup. http://codereview.chromium.org/6979011/diff/23001/chrome/browser/browser_process_impl.h File chrome/browser/browser_process_impl.h (right): http://codereview.chromium.org/6979011/diff/23001/chrome/browser/browser_process_impl.h#newcode42 chrome/browser/browser_process_impl.h:42: }; This is already forward-declared ...
9 years, 6 months ago (2011-06-03 12:23:51 UTC) #7
sfeuz
thanks for the comments. I did some more manual testing of proxy-policies on CrOS. Up ...
9 years, 6 months ago (2011-06-03 16:19:28 UTC) #8
sfeuz
Newest changes: * Use UserDataDir instead of ProfileDir. * There was a problem that user ...
9 years, 6 months ago (2011-06-05 19:03:42 UTC) #9
sfeuz
Changed the way the alternative startup path is handled: * Using ProfileDir again instead of ...
9 years, 6 months ago (2011-06-08 07:23:03 UTC) #10
Mattias Nissler (ping if slow)
a bag of assorted comments and style nits :) http://codereview.chromium.org/6979011/diff/27001/chrome/browser/policy/browser_policy_connector.cc File chrome/browser/policy/browser_policy_connector.cc (right): http://codereview.chromium.org/6979011/diff/27001/chrome/browser/policy/browser_policy_connector.cc#newcode358 chrome/browser/policy/browser_policy_connector.cc:358: ...
9 years, 6 months ago (2011-06-09 14:36:25 UTC) #11
sfeuz
http://codereview.chromium.org/6979011/diff/27001/chrome/browser/policy/browser_policy_connector.cc File chrome/browser/policy/browser_policy_connector.cc (right): http://codereview.chromium.org/6979011/diff/27001/chrome/browser/policy/browser_policy_connector.cc#newcode358 chrome/browser/policy/browser_policy_connector.cc:358: if (token_details->service() == GaiaConstants::kDeviceManagementService) On 2011/06/09 14:36:26, Mattias Nissler ...
9 years, 6 months ago (2011-06-13 06:53:53 UTC) #12
gfeher
9 years, 6 months ago (2011-06-14 12:50:25 UTC) #13
Nice work Sandro!
I am continuing it in http://codereview.chromium.org/7147015/

Powered by Google App Engine
This is Rietveld 408576698