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

Issue 2440473004: Add policy domain for signin screen apps (Closed)

Created:
4 years, 2 months ago by emaxx
Modified:
4 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add policy domain for signin screen apps This introduces a new policy domain that is intended for fetching and providing admin policies for the login screen apps. This is preparation CL for the following CLs that will add actual fetching of the policies for the login screen apps. No behavior change is expected to be introduced by this CL. BUG=644304 TEST=existing tests Committed: https://crrev.com/f1884f8297f6c1c4d1f3a67d8271fd1d1c7385ae Cr-Commit-Position: refs/heads/master@{#428845}

Patch Set 1 #

Patch Set 2 : Fix compilation #

Total comments: 8

Patch Set 3 : Remove unrelated change #

Patch Set 4 : Add comment for the tricky place #

Total comments: 4

Patch Set 5 : Refactor: add SchemaRegistry convenience methods #

Total comments: 2

Patch Set 6 : Changed comment according to feedback #

Total comments: 2

Patch Set 7 : More comments according to feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -89 lines) Patch
M chrome/browser/chromeos/policy/device_local_account_extension_tracker.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/storage/managed_value_store_cache.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/storage/managed_value_store_cache.cc View 1 2 3 4 5 11 chunks +35 lines, -31 lines 0 comments Download
M chrome/browser/policy/test/local_policy_test_server.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/test/policy_testserver.py View 4 chunks +8 lines, -4 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_manager.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_manager.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service.h View 1 2 3 4 5 6 4 chunks +7 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service.cc View 1 2 3 4 5 6 8 chunks +14 lines, -10 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service_stub.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc View 1 2 3 4 4 chunks +6 lines, -8 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_store.cc View 1 chunk +12 lines, -6 lines 0 comments Download
M components/policy/core/common/cloud/resource_cache.h View 1 chunk +4 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_manager.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/policy/core/common/policy_namespace.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/policy/core/common/policy_service_impl_unittest.cc View 3 chunks +26 lines, -0 lines 0 comments Download
M components/policy/core/common/policy_test_utils.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/core/common/schema_registry.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M components/policy/core/common/schema_registry.cc View 1 2 3 4 3 chunks +12 lines, -3 lines 0 comments Download
M components/policy/core/common/schema_registry_tracking_policy_provider_unittest.cc View 1 2 3 4 4 chunks +4 lines, -7 lines 0 comments Download
M components/policy/core/common/schema_registry_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (31 generated)
emaxx
Drew, PTAL. https://codereview.chromium.org/2440473004/diff/20001/chrome/browser/chromeos/policy/device_local_account_extension_tracker.cc File chrome/browser/chromeos/policy/device_local_account_extension_tracker.cc (left): https://codereview.chromium.org/2440473004/diff/20001/chrome/browser/chromeos/policy/device_local_account_extension_tracker.cc#oldcode40 chrome/browser/chromeos/policy/device_local_account_extension_tracker.cc:40: schema_registry_->SetReady(POLICY_DOMAIN_EXTENSIONS); It seems that these two lines ...
4 years, 2 months ago (2016-10-21 03:37:53 UTC) #10
Andrew T Wilson (Slow)
LGTM assuming you have reasonable responses to my comments https://codereview.chromium.org/2440473004/diff/20001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/2440473004/diff/20001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode229 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:229: ...
4 years, 2 months ago (2016-10-21 13:56:30 UTC) #11
emaxx
Thanks a lot for the prompt review! https://codereview.chromium.org/2440473004/diff/20001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/2440473004/diff/20001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode229 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:229: schema_registry_->SetReady(policy::POLICY_DOMAIN_EXTENSIONS); On ...
4 years, 2 months ago (2016-10-21 14:33:10 UTC) #14
emaxx
Hi Devlin, could you PTAL at changes under chrome/browser/extensions/api/storage/ ? Note that this CL is ...
4 years, 2 months ago (2016-10-21 14:59:39 UTC) #18
Devlin
Sorry for the delay - missed this one come in. I'm not super familiar with ...
4 years, 1 month ago (2016-10-27 00:50:34 UTC) #21
emaxx
https://codereview.chromium.org/2440473004/diff/60001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/2440473004/diff/60001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode230 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:230: // Note that instead of using the |policy_domain_| value ...
4 years, 1 month ago (2016-10-27 13:34:22 UTC) #22
Devlin
https://codereview.chromium.org/2440473004/diff/60001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/2440473004/diff/60001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode230 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:230: // Note that instead of using the |policy_domain_| value ...
4 years, 1 month ago (2016-10-27 14:47:34 UTC) #23
emaxx
Made some more refactoring according to feedback from Devlin. Drew, please take a look too. ...
4 years, 1 month ago (2016-10-27 16:15:48 UTC) #28
Devlin
nice; this looks better to me from an extensions perspective. I'll wait for Drew's lg ...
4 years, 1 month ago (2016-10-28 21:34:01 UTC) #29
emaxx
https://codereview.chromium.org/2440473004/diff/80001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc File chrome/browser/extensions/api/storage/managed_value_store_cache.cc (right): https://codereview.chromium.org/2440473004/diff/80001/chrome/browser/extensions/api/storage/managed_value_store_cache.cc#newcode230 chrome/browser/extensions/api/storage/managed_value_store_cache.cc:230: // Note that instead of using the |policy_domain_| value ...
4 years, 1 month ago (2016-10-31 17:22:43 UTC) #34
Andrew T Wilson (Slow)
LGTM with one request for an expanded comment. https://codereview.chromium.org/2440473004/diff/100001/components/policy/core/common/cloud/component_cloud_policy_service.h File components/policy/core/common/cloud/component_cloud_policy_service.h (right): https://codereview.chromium.org/2440473004/diff/100001/components/policy/core/common/cloud/component_cloud_policy_service.h#newcode60 components/policy/core/common/cloud/component_cloud_policy_service.h:60: // ...
4 years, 1 month ago (2016-10-31 20:54:21 UTC) #35
Devlin
extensions lgtm
4 years, 1 month ago (2016-10-31 21:16:35 UTC) #38
emaxx
https://codereview.chromium.org/2440473004/diff/100001/components/policy/core/common/cloud/component_cloud_policy_service.h File components/policy/core/common/cloud/component_cloud_policy_service.h (right): https://codereview.chromium.org/2440473004/diff/100001/components/policy/core/common/cloud/component_cloud_policy_service.h#newcode60 components/policy/core/common/cloud/component_cloud_policy_service.h:60: // |policy_type| specifies the policy type that should be ...
4 years, 1 month ago (2016-10-31 22:27:23 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2440473004/120001
4 years, 1 month ago (2016-10-31 22:28:16 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-31 22:34:41 UTC) #45
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 22:37:53 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f1884f8297f6c1c4d1f3a67d8271fd1d1c7385ae
Cr-Commit-Position: refs/heads/master@{#428845}

Powered by Google App Engine
This is Rietveld 408576698