Alex Deymo | 81f30e8 | 2014-01-08 14:33:06 -0800 | [diff] [blame] | 1 | // Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_GENERIC_VARIABLES_INL_H |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_GENERIC_VARIABLES_INL_H |
| 7 | |
| 8 | namespace chromeos_policy_manager { |
| 9 | |
| 10 | template<typename T> |
| 11 | CopyVariable<T>::CopyVariable(const T& ref) : ref_(ref) {} |
| 12 | |
| 13 | template<typename T> |
| 14 | const T* CopyVariable<T>::GetValue(base::TimeDelta /* timeout */, |
| 15 | std::string* /* errmsg */) { |
| 16 | return new T(ref_); |
| 17 | }; |
| 18 | |
| 19 | } // namespace chromeos_policy_manager |
| 20 | |
| 21 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_GENERIC_VARIABLES_INL_H |