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

Unified Diff: chrome/browser/policy/profile_policy_connector.cc

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: Fixed mac tests Created 7 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/policy/profile_policy_connector.cc
diff --git a/chrome/browser/policy/profile_policy_connector.cc b/chrome/browser/policy/profile_policy_connector.cc
index fae3b36af7ff91d9f4b2d07463f7dc97fbc9f249..fbc6d525cfa849a9b285f5f0d62a7e2cbdc93c02 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -11,6 +11,8 @@
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/policy/configuration_policy_provider.h"
#include "chrome/browser/policy/policy_service_impl.h"
+#include "chrome/browser/policy/schema_registry_service.h"
+#include "chrome/browser/policy/schema_registry_service_factory.h"
#if defined(OS_CHROMEOS)
#include "base/bind.h"
@@ -62,7 +64,8 @@ void ProfilePolicyConnector::Init(bool force_immediate_load) {
if (chromeos::ProfileHelper::IsSigninProfile(profile_)) {
special_user_policy_provider_.reset(new LoginProfilePolicyProvider(
connector->GetPolicyService()));
- special_user_policy_provider_->Init();
+ special_user_policy_provider_->Init(
+ SchemaRegistryServiceFactory::GetForContext(profile_));
} else {
// |user| should never be NULL except for the signin profile.
chromeos::UserManager* user_manager = chromeos::UserManager::Get();
@@ -170,7 +173,8 @@ void ProfilePolicyConnector::InitializeDeviceLocalAccountPolicyProvider(
return;
special_user_policy_provider_.reset(new DeviceLocalAccountPolicyProvider(
username, device_local_account_policy_service));
- special_user_policy_provider_->Init();
+ special_user_policy_provider_->Init(
+ SchemaRegistryServiceFactory::GetForContext(profile_));
}
#endif

Powered by Google App Engine
This is Rietveld 408576698