blob: 29a913f8f0f3d6a55e1de48a4b5ec3153963e92e [file] [log] [blame]
Gilad Arnold55f39b72014-01-28 12:51:45 -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#include "update_engine/policy_manager/generic_variables.h"
6#include "update_engine/policy_manager/real_shill_provider.h"
7
8namespace chromeos_policy_manager {
9
10// ShillProvider implementation.
11
12bool RealShillProvider::DoInit(void) {
13 // TODO(garnold) Initialize with actual (or fake) DBus connection.
14
15 var_is_connected_.reset(
16 new CopyVariable<bool>("is_connected", is_connected_));
17 var_conn_type_.reset(
18 new CopyVariable<ShillConnType>("conn_type", conn_type_));
19 var_conn_last_changed_.reset(
20 new CopyVariable<Time>("conn_last_changed", conn_last_changed_));
21 return true;
22}
23
24} // namespace chromeos_policy_manager