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

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: rebase 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 96812cc16b1ed1de3d68d94cf0eb471cb944bf7c..ba88c996e2264e736612ec0b851b8d557ebd8358 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -12,6 +12,8 @@
#include "chrome/browser/policy/cloud/cloud_policy_manager.h"
#include "chrome/browser/policy/configuration_policy_provider.h"
#include "chrome/browser/policy/policy_service.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"
@@ -56,7 +58,8 @@ void ProfilePolicyConnector::Init(
// This case occurs for the signin 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.
is_primary_user_ = user == chromeos::UserManager::Get()->GetPrimaryUser();
@@ -122,7 +125,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
« no previous file with comments | « chrome/browser/policy/policy_service_stub.cc ('k') | chrome/browser/policy/profile_policy_connector_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698