} // namespace
BrowserPolicyConnector::BrowserPolicyConnector(
- scoped_ptr<ConfigurationPolicyHandlerList> handler_list)
+ const HandlerListFactory& handler_list_factory)
: is_initialized_(false),
- handler_list_(handler_list.Pass()),
platform_policy_provider_(NULL) {
// GetPolicyService() must be ready after the constructor is done.
// The connector is created very early during startup, when the browser
// Initialize the SchemaRegistry with the Chrome schema before creating any
// of the policy providers in subclasses.
chrome_schema_ = Schema::Wrap(GetChromeSchemaData());
+ handler_list_ = handler_list_factory.Run(chrome_schema_);
schema_registry_.RegisterComponent(PolicyNamespace(POLICY_DOMAIN_CHROME, ""),
chrome_schema_);
}