OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/cloud/policy_builder.h" | 5 #include "components/policy/core/common/cloud/policy_builder.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 10 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 template<> | 222 template<> |
223 TypedPolicyBuilder<em::CloudPolicySettings>::TypedPolicyBuilder() | 223 TypedPolicyBuilder<em::CloudPolicySettings>::TypedPolicyBuilder() |
224 : payload_(new em::CloudPolicySettings()) { | 224 : payload_(new em::CloudPolicySettings()) { |
225 policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType); | 225 policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType); |
226 } | 226 } |
227 | 227 |
228 // Have the instantiation compiled into the module. | 228 // Have the instantiation compiled into the module. |
229 template class TypedPolicyBuilder<em::CloudPolicySettings>; | 229 template class TypedPolicyBuilder<em::CloudPolicySettings>; |
230 | 230 |
231 #if !defined(OS_ANDROID) | 231 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
232 template<> | 232 template<> |
233 TypedPolicyBuilder<em::ExternalPolicyData>::TypedPolicyBuilder() | 233 TypedPolicyBuilder<em::ExternalPolicyData>::TypedPolicyBuilder() |
234 : payload_(new em::ExternalPolicyData()) { | 234 : payload_(new em::ExternalPolicyData()) { |
235 policy_data().set_policy_type(dm_protocol::kChromeExtensionPolicyType); | 235 policy_data().set_policy_type(dm_protocol::kChromeExtensionPolicyType); |
236 } | 236 } |
237 | 237 |
238 template class TypedPolicyBuilder<em::ExternalPolicyData>; | 238 template class TypedPolicyBuilder<em::ExternalPolicyData>; |
239 #endif | 239 #endif |
240 | 240 |
241 } // namespace policy | 241 } // namespace policy |
OLD | NEW |