blob: 29a913f8f0f3d6a55e1de48a4b5ec3153963e92e [file] [log] [blame]
// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "update_engine/policy_manager/generic_variables.h"
#include "update_engine/policy_manager/real_shill_provider.h"
namespace chromeos_policy_manager {
// ShillProvider implementation.
bool RealShillProvider::DoInit(void) {
// TODO(garnold) Initialize with actual (or fake) DBus connection.
var_is_connected_.reset(
new CopyVariable<bool>("is_connected", is_connected_));
var_conn_type_.reset(
new CopyVariable<ShillConnType>("conn_type", conn_type_));
var_conn_last_changed_.reset(
new CopyVariable<Time>("conn_last_changed", conn_last_changed_));
return true;
}
} // namespace chromeos_policy_manager