OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/policy/core/browser/browser_policy_connector_base.h" | 5 #include "components/policy/core/browser/browser_policy_connector_base.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "components/policy/core/common/configuration_policy_provider.h" | 12 #include "components/policy/core/common/configuration_policy_provider.h" |
13 #include "components/policy/core/common/policy_namespace.h" | 13 #include "components/policy/core/common/policy_namespace.h" |
14 #include "components/policy/core/common/policy_service_impl.h" | 14 #include "components/policy/core/common/policy_service_impl.h" |
15 #include "policy/policy_constants.h" | 15 #include "policy/policy_constants.h" |
16 | 16 |
17 namespace policy { | 17 namespace policy { |
18 | 18 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 void BrowserPolicyConnectorBase::AddPolicyProvider( | 123 void BrowserPolicyConnectorBase::AddPolicyProvider( |
124 scoped_ptr<ConfigurationPolicyProvider> provider) { | 124 scoped_ptr<ConfigurationPolicyProvider> provider) { |
125 policy_providers_.push_back(provider.release()); | 125 policy_providers_.push_back(provider.release()); |
126 } | 126 } |
127 | 127 |
128 void BrowserPolicyConnectorBase::SetPlatformPolicyProvider( | 128 void BrowserPolicyConnectorBase::SetPlatformPolicyProvider( |
129 scoped_ptr<ConfigurationPolicyProvider> provider) { | 129 scoped_ptr<ConfigurationPolicyProvider> provider) { |
130 CHECK(!platform_policy_provider_); | 130 CHECK(!platform_policy_provider_); |
131 platform_policy_provider_ = provider.get(); | 131 platform_policy_provider_ = provider.get(); |
132 AddPolicyProvider(provider.Pass()); | 132 AddPolicyProvider(std::move(provider)); |
133 } | 133 } |
134 | 134 |
135 } // namespace policy | 135 } // namespace policy |
OLD | NEW |