X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcomponents%2Fpolicy%2Fcore%2Fbrowser%2Fbrowser_policy_connector.cc;h=109121ee1681bf13797ebf00e168819a09715648;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=6eab8a57f9f7c2d7a478d14c7147f044718efaa5;hpb=d482483c7e386df3f789b1cb1845b73bfcaae2bd;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/components/policy/core/browser/browser_policy_connector.cc b/src/components/policy/core/browser/browser_policy_connector.cc index 6eab8a5..109121e 100644 --- a/src/components/policy/core/browser/browser_policy_connector.cc +++ b/src/components/policy/core/browser/browser_policy_connector.cc @@ -56,9 +56,8 @@ bool MatchDomain(const base::string16& domain, const base::string16& pattern) { } // namespace BrowserPolicyConnector::BrowserPolicyConnector( - scoped_ptr 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 @@ -68,6 +67,7 @@ BrowserPolicyConnector::BrowserPolicyConnector( // 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_); }