blob: f44a287db0e714e53d025e0efdd60849244ec3c7 [file] [log] [blame]
Alex Deymo81f30e82014-01-08 14:33:06 -08001// 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
8namespace chromeos_policy_manager {
9
10template<typename T>
11CopyVariable<T>::CopyVariable(const T& ref) : ref_(ref) {}
12
13template<typename T>
14const 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