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

Issue 342233005: Move ownership of the ComponentCloudPolicyService to the broker. (Closed)

Created:
6 years, 6 months ago by Joao da Silva
Modified:
6 years, 6 months ago
Reviewers:
bartfab (slow), zel
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Move ownership of the ComponentCloudPolicyService to the broker. The ComponentCloudPolicyService needs to work with the SchemaRegistry, so it was initially owned by the DeviceLocalAccountPolicyProvider (which always has a valid reference to the registry). However, this means that the ComponentCloudPolicyService can't precache any policies until the session is started. To enable precaching at enrollment time and at the login screen, the ComponentCloudPolicyService has been moved to the broker instead. This allows some code simplifications too, but requires changing the ownership of the SchemaRegistry for device local accounts. This CL is just moving code around; a subsequent CL will trigger the precaching. TBR=zelidrag@chromium.org BUG=224596 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278847

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix clang build #

Total comments: 20

Patch Set 4 : fixed comments #

Total comments: 12

Patch Set 5 : fixed initialization of the registry, fixed nit in testserver #

Patch Set 6 : rebase #

Patch Set 7 : addressed nits #

Patch Set 8 : fixed tests #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -176 lines) Patch
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_provider.h View 1 2 3 5 chunks +4 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_provider.cc View 1 2 3 6 chunks +9 lines, -68 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.h View 1 2 3 12 chunks +36 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 20 chunks +80 lines, -46 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/policy/schema_registry_service_factory.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/schema_registry_service_factory.cc View 1 2 3 4 5 6 2 chunks +60 lines, -1 line 0 comments Download
M chrome/browser/policy/test/policy_testserver.py View 1 2 3 4 5 6 5 chunks +9 lines, -9 lines 0 comments Download
M chromeos/chromeos_paths.h View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Joao da Silva
Turns out that the first implementation at https://codereview.chromium.org/341043005 was more complicated than it needs to ...
6 years, 6 months ago (2014-06-20 01:12:39 UTC) #1
bartfab (slow)
https://codereview.chromium.org/342233005/diff/40001/chrome/browser/chromeos/policy/device_local_account_policy_service.cc File chrome/browser/chromeos/policy/device_local_account_policy_service.cc (right): https://codereview.chromium.org/342233005/diff/40001/chrome/browser/chromeos/policy/device_local_account_policy_service.cc#newcode10 chrome/browser/chromeos/policy/device_local_account_policy_service.cc:10: #include "base/callback.h" Nit: Move this to the header file. ...
6 years, 6 months ago (2014-06-20 09:44:23 UTC) #2
Joao da Silva
I've addressed the comments on this CL and on the parent CL too. This has ...
6 years, 6 months ago (2014-06-20 15:36:08 UTC) #3
bartfab (slow)
lgtm https://codereview.chromium.org/342233005/diff/60001/chrome/browser/policy/schema_registry_service_factory.cc File chrome/browser/policy/schema_registry_service_factory.cc (right): https://codereview.chromium.org/342233005/diff/60001/chrome/browser/policy/schema_registry_service_factory.cc#newcode37 chrome/browser/policy/schema_registry_service_factory.cc:37: // Bail out on unit tests that don't ...
6 years, 6 months ago (2014-06-20 16:41:11 UTC) #4
Joao da Silva
https://codereview.chromium.org/342233005/diff/60001/chrome/browser/policy/schema_registry_service_factory.cc File chrome/browser/policy/schema_registry_service_factory.cc (right): https://codereview.chromium.org/342233005/diff/60001/chrome/browser/policy/schema_registry_service_factory.cc#newcode37 chrome/browser/policy/schema_registry_service_factory.cc:37: // Bail out on unit tests that don't have ...
6 years, 6 months ago (2014-06-20 17:25:34 UTC) #5
Joao da Silva
Zel to TBR for chromeos_paths.h
6 years, 6 months ago (2014-06-20 18:33:39 UTC) #6
Joao da Silva
The CQ bit was checked by joaodasilva@chromium.org
6 years, 6 months ago (2014-06-20 18:33:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/342233005/150001
6 years, 6 months ago (2014-06-20 19:04:08 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 22:43:27 UTC) #9
Message was sent while issue was closed.
Change committed as 278847

Powered by Google App Engine
This is Rietveld 408576698