1 // Copyright 2014 The Chromium 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.
5 #include "components/copresence/handlers/audio/tick_clock_ref_counted.h"
7 #include "base/time/tick_clock.h"
11 TickClockRefCounted::TickClockRefCounted(scoped_ptr
<base::TickClock
> clock
)
12 : clock_(clock
.Pass()) {}
14 TickClockRefCounted::TickClockRefCounted(base::TickClock
* clock
)
15 : clock_(make_scoped_ptr(clock
)) {}
17 base::TimeTicks
TickClockRefCounted::NowTicks() const {
18 return clock_
->NowTicks();
21 TickClockRefCounted::~TickClockRefCounted() {}
23 } // namespace copresence