Prashant Malani | 224d3ca | 2017-03-14 12:44:11 -0700 | [diff] [blame] | 1 | // Copyright 2017 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 | |
Prashant Malani | d91f489 | 2017-03-22 14:06:44 -0700 | [diff] [blame] | 5 | #include <base/memory/ptr_util.h> |
| 6 | |
Prashant Malani | 224d3ca | 2017-03-14 12:44:11 -0700 | [diff] [blame] | 7 | #include "midis/daemon.h" |
| 8 | |
| 9 | namespace midis { |
| 10 | |
Prashant Malani | d91f489 | 2017-03-22 14:06:44 -0700 | [diff] [blame] | 11 | Daemon::Daemon() : device_tracker_(base::MakeUnique<DeviceTracker>()) {} |
Prashant Malani | 224d3ca | 2017-03-14 12:44:11 -0700 | [diff] [blame] | 12 | |
| 13 | Daemon::~Daemon() {} |
| 14 | |
| 15 | int Daemon::OnInit() { |
| 16 | if (!device_tracker_->InitDeviceTracker()) { |
| 17 | return -1; |
| 18 | } |
| 19 | |
| 20 | return 0; |
| 21 | } |
| 22 | |
| 23 | } // namespace midis |