Gilad Arnold | 55f39b7 | 2014-01-28 12:51:45 -0800 | [diff] [blame^] | 1 | // 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 | |
| 8 | namespace chromeos_policy_manager { |
| 9 | |
| 10 | // ShillProvider implementation. |
| 11 | |
| 12 | bool 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 |