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

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

Created:
9 years, 6 months ago by gfeher
Modified:
9 years, 5 months ago
CC:
chromium-reviews, rharrison, Paweł Hajdan Jr., nkostylev+cc_chromium.org, davemoore+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Move user cloud policy to BrowserProcess (was 6979011) 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. Continuation of http://codereview.chromium.org/6979011/ Patch from sfeuz@chromium.org with additional work from gfeher@chromium.org BUG=none TEST=Unittests CloudPolicyProvider.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90957

Patch Set 1 #

Patch Set 2 : fix unit_tests, refactor, rebase #

Patch Set 3 : " #

Patch Set 4 : cut a circular startup dependency #

Total comments: 66

Patch Set 5 : addressed comments #

Patch Set 6 : rebase #

Total comments: 25

Patch Set 7 : addressed Mattias' comments #

Total comments: 8

Patch Set 8 : rebase + address comments #

Total comments: 44

Patch Set 9 : rebase + addressed comments #

Patch Set 10 : fix unit_test include breakage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1057 lines, -973 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/browser_process_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/base_login_display_host.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/signed_settings_temp_storage_unittest.cc View 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 +75 lines, -26 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 6 7 8 8 chunks +176 lines, -48 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.h View 1 2 3 4 5 6 7 6 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.cc View 1 2 3 4 3 chunks +22 lines, -69 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -6 lines 0 comments Download
A chrome/browser/policy/cloud_policy_provider.h View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_provider.cc View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_provider_impl.h View 1 2 3 4 5 6 7 8 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud_policy_provider_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +125 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 +240 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.h View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -20 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 2 3 4 5 6 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 5 6 5 chunks +17 lines, -36 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -43 lines 0 comments Download
D chrome/browser/policy/configuration_policy_store_interface.cc View 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/policy/configuration_policy_store_interface_unittest.cc View 1 chunk +0 lines, -57 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/policy/dummy_cloud_policy_provider.h View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/policy/dummy_cloud_policy_provider.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download
D chrome/browser/policy/profile_policy_connector.h View 1 chunk +0 lines, -106 lines 0 comments Download
D chrome/browser/policy/profile_policy_connector.cc View 1 1 chunk +0 lines, -175 lines 0 comments Download
D chrome/browser/policy/profile_policy_connector_factory.h View 1 chunk +0 lines, -44 lines 0 comments Download
D chrome/browser/policy/profile_policy_connector_factory.cc View 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/policy/profile_policy_connector_unittest.cc View 1 chunk +0 lines, -57 lines 0 comments Download
M chrome/browser/policy/user_policy_cache.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/policy/user_policy_cache.cc View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/policy/user_policy_cache_unittest.cc View 4 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.h View 1 2 3 4 5 2 chunks +15 lines, -17 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.cc View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -72 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/prefs/pref_service.h View 1 chunk +8 lines, -10 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 2 3 4 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 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M chrome/test/testing_browser_process.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
gfeher
The first patch set is just a copy of the last patch set in http://codereview.chromium.org/6979011/ ...
9 years, 6 months ago (2011-06-14 12:52:30 UTC) #1
gfeher
This is ready for review now! (Passes tests and my manual checks on ChromeOS.) Notes: ...
9 years, 6 months ago (2011-06-20 15:36:49 UTC) #2
Mattias Nissler (ping if slow)
woohoo, I made it through! http://codereview.chromium.org/7147015/diff/4050/chrome/browser/chromeos/login/background_view.cc File chrome/browser/chromeos/login/background_view.cc (right): http://codereview.chromium.org/7147015/diff/4050/chrome/browser/chromeos/login/background_view.cc#newcode362 chrome/browser/chromeos/login/background_view.cc:362: device_cloud_policy_subsystem(); not sure, but ...
9 years, 6 months ago (2011-06-21 20:09:56 UTC) #3
Joao da Silva
Just my 2 nits. http://codereview.chromium.org/7147015/diff/4050/chrome/browser/policy/browser_policy_connector.h File chrome/browser/policy/browser_policy_connector.h (right): http://codereview.chromium.org/7147015/diff/4050/chrome/browser/policy/browser_policy_connector.h#newcode95 chrome/browser/policy/browser_policy_connector.h:95: void InitializeUserPolicy(std::string& user_name, Should |user_name| ...
9 years, 6 months ago (2011-06-22 12:51:30 UTC) #4
gfeher
Thanks for the great reviews. :-) Up for another round. http://codereview.chromium.org/7147015/diff/4050/chrome/browser/chromeos/login/background_view.cc File chrome/browser/chromeos/login/background_view.cc (right): http://codereview.chromium.org/7147015/diff/4050/chrome/browser/chromeos/login/background_view.cc#newcode362 ...
9 years, 6 months ago (2011-06-22 19:18:33 UTC) #5
Mattias Nissler (ping if slow)
Getting closer. Rip the loops out of the unit test and I'll be mostly happy ...
9 years, 6 months ago (2011-06-24 09:16:46 UTC) #6
gfeher
No more loops as requested. :-) Up for another round. Note, that I haven't run ...
9 years, 6 months ago (2011-06-24 15:32:43 UTC) #7
Mattias Nissler (ping if slow)
I like the way you have simplified the rocket science unit test to something easily ...
9 years, 6 months ago (2011-06-24 17:27:17 UTC) #8
Mattias Nissler (ping if slow)
I like the way you have simplified the rocket science unit test to something easily ...
9 years, 6 months ago (2011-06-24 17:27:31 UTC) #9
gfeher
Addressed/answered comments. http://codereview.chromium.org/7147015/diff/25001/chrome/browser/policy/user_policy_identity_strategy.cc File chrome/browser/policy/user_policy_identity_strategy.cc (right): http://codereview.chromium.org/7147015/diff/25001/chrome/browser/policy/user_policy_identity_strategy.cc#newcode96 chrome/browser/policy/user_policy_identity_strategy.cc:96: cache_loaded_ = true; On 2011/06/24 17:27:17, Mattias ...
9 years, 6 months ago (2011-06-27 16:50:24 UTC) #10
Joao da Silva
LGTM! The comments are mostly cleanups. http://codereview.chromium.org/7147015/diff/37001/chrome/browser/policy/browser_policy_connector.cc File chrome/browser/policy/browser_policy_connector.cc (right): http://codereview.chromium.org/7147015/diff/37001/chrome/browser/policy/browser_policy_connector.cc#newcode9 chrome/browser/policy/browser_policy_connector.cc:9: #include "chrome/browser/browser_process.h" Nit: ...
9 years, 5 months ago (2011-06-29 11:36:16 UTC) #11
gfeher
Thanks for the comments! Let's see if the trybots still like it. http://codereview.chromium.org/7147015/diff/37001/chrome/browser/policy/browser_policy_connector.cc File chrome/browser/policy/browser_policy_connector.cc ...
9 years, 5 months ago (2011-06-29 12:53:07 UTC) #12
gfeher
Hi Miranda, Please owner-approve the change to profile_impl.cc in this CL. It's the result of ...
9 years, 5 months ago (2011-06-29 13:00:24 UTC) #13
Miranda Callahan
On 2011/06/29 13:00:24, gfeher wrote: > Hi Miranda, > Please owner-approve the change to profile_impl.cc ...
9 years, 5 months ago (2011-06-29 13:08:07 UTC) #14
sfeuz
9 years, 5 months ago (2011-07-02 12:26:42 UTC) #15
very happy to see this being committed :-)

Powered by Google App Engine
This is Rietveld 408576698