| 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 "chrome/browser/policy/policy_builder.h" | 5 #include "chrome/browser/policy/policy_builder.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 11 #include "chrome/browser/policy/cloud_policy_constants.h" | 11 #include "chrome/browser/policy/cloud_policy_constants.h" |
| 12 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 12 #include "crypto/signature_creator.h" | 13 #include "crypto/signature_creator.h" |
| 13 | 14 |
| 14 namespace em = enterprise_management; | 15 namespace em = enterprise_management; |
| 15 | 16 |
| 16 namespace policy { | 17 namespace policy { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 // Signing key test data in DER-encoded PKCS8 format. | 21 // Signing key test data in DER-encoded PKCS8 format. |
| 21 const uint8 kSigningKey[] = { | 22 const uint8 kSigningKey[] = { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 CHECK(payload_->SerializeToString(policy_data().mutable_policy_value())); | 206 CHECK(payload_->SerializeToString(policy_data().mutable_policy_value())); |
| 206 | 207 |
| 207 PolicyBuilder::Build(); | 208 PolicyBuilder::Build(); |
| 208 } | 209 } |
| 209 | 210 |
| 210 // Have the instantiations compiled into the module. | 211 // Have the instantiations compiled into the module. |
| 211 template class TypedPolicyBuilder<em::CloudPolicySettings>; | 212 template class TypedPolicyBuilder<em::CloudPolicySettings>; |
| 212 template class TypedPolicyBuilder<em::ChromeDeviceSettingsProto>; | 213 template class TypedPolicyBuilder<em::ChromeDeviceSettingsProto>; |
| 213 | 214 |
| 214 } // namespace policy | 215 } // namespace policy |
| OLD | NEW |