blob: fdedc29fb3fada6b4d2c6883d2aefb5a42308239 [file] [log] [blame]
Alex Deymo63784a52014-05-28 10:46:14 -07001// 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#include "update_engine/update_manager/update_manager.h"
6
7#include "update_engine/update_manager/chromeos_policy.h"
8#include "update_engine/update_manager/state.h"
9
10namespace chromeos_update_manager {
11
12UpdateManager::UpdateManager(chromeos_update_engine::ClockInterface* clock,
Gilad Arnoldb2271992014-06-19 12:35:24 -070013 base::TimeDelta evaluation_timeout, State* state)
Gilad Arnolda23e4082014-07-17 11:40:43 -070014 : default_policy_(clock), state_(state), clock_(clock),
15 evaluation_timeout_(evaluation_timeout) {
Alex Deymo63784a52014-05-28 10:46:14 -070016 // TODO(deymo): Make it possible to replace this policy with a different
17 // implementation with a build-time flag.
18 policy_.reset(new ChromeOSPolicy());
19}
20
21} // namespace chromeos_update_manager