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

Unified Diff: chrome/browser/chromeos/policy/device_local_account_policy_service.cc

Issue 2440473004: Add policy domain for signin screen apps (Closed)
Patch Set: More comments according to feedback Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/device_local_account_policy_service.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_service.cc b/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
index 3cd643fbe7d06d468e80c3382067c83c7cfc2699..22dd3c5fb9fa30f3a8f4aa463fea17cc3a8790b0 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
@@ -146,8 +146,7 @@ DeviceLocalAccountPolicyBroker::DeviceLocalAccountPolicyBroker(
schema_registry_.RegisterComponent(
PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()),
g_browser_process->browser_policy_connector()->GetChromeSchema());
- schema_registry_.SetReady(POLICY_DOMAIN_CHROME);
- schema_registry_.SetReady(POLICY_DOMAIN_EXTENSIONS);
+ schema_registry_.SetAllDomainsReady();
}
DeviceLocalAccountPolicyBroker::~DeviceLocalAccountPolicyBroker() {
@@ -234,9 +233,10 @@ void DeviceLocalAccountPolicyBroker::CreateComponentCloudPolicyService(
content::BrowserThread::FILE)));
component_policy_service_.reset(new ComponentCloudPolicyService(
- this, &schema_registry_, core(), client, std::move(resource_cache),
- request_context, content::BrowserThread::GetTaskRunnerForThread(
- content::BrowserThread::FILE),
+ dm_protocol::kChromeExtensionPolicyType, this, &schema_registry_, core(),
+ client, std::move(resource_cache), request_context,
+ content::BrowserThread::GetTaskRunnerForThread(
+ content::BrowserThread::FILE),
content::BrowserThread::GetTaskRunnerForThread(
content::BrowserThread::IO)));
}

Powered by Google App Engine
This is Rietveld 408576698