blob: 605c0ac388f431bd2c594b6984ea711e6fa17479 [file] [log] [blame]
Prashant Malani224d3ca2017-03-14 12:44:11 -07001// 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 Malanid91f4892017-03-22 14:06:44 -07005#include <base/memory/ptr_util.h>
6
Prashant Malani224d3ca2017-03-14 12:44:11 -07007#include "midis/daemon.h"
8
9namespace midis {
10
Prashant Malanid91f4892017-03-22 14:06:44 -070011Daemon::Daemon() : device_tracker_(base::MakeUnique<DeviceTracker>()) {}
Prashant Malani224d3ca2017-03-14 12:44:11 -070012
13Daemon::~Daemon() {}
14
15int Daemon::OnInit() {
16 if (!device_tracker_->InitDeviceTracker()) {
17 return -1;
18 }
19
20 return 0;
21}
22
23} // namespace midis