blob: 71f02907a6f848f3bd61b1535985ebf1d5a4be55 [file] [log] [blame]
Alex Deymoc705cc82014-02-19 11:15:00 -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
Alex Deymoc705cc82014-02-19 11:15:00 -08005#include "update_engine/policy_manager/policy_manager.h"
Alex Deymo7b948f02014-03-10 17:01:10 -07006
7#include "update_engine/policy_manager/chromeos_policy.h"
Alex Deymo94c06162014-03-21 20:34:46 -07008#include "update_engine/policy_manager/state.h"
Alex Deymoc705cc82014-02-19 11:15:00 -08009
Alex Deymo7b948f02014-03-10 17:01:10 -070010using base::Closure;
11
Alex Deymoc705cc82014-02-19 11:15:00 -080012namespace chromeos_policy_manager {
13
Alex Deymo680d0222014-04-24 21:00:08 -070014PolicyManager::PolicyManager(chromeos_update_engine::ClockInterface* clock,
15 State* state)
16 : state_(state), clock_(clock) {
Alex Deymoc705cc82014-02-19 11:15:00 -080017 // TODO(deymo): Make it possible to replace this policy with a different
18 // implementation with a build-time flag.
19 policy_.reset(new ChromeOSPolicy());
Alex Deymoc705cc82014-02-19 11:15:00 -080020}
21
Alex Deymoc705cc82014-02-19 11:15:00 -080022} // namespace chromeos_policy_manager