Index: components/copresence/handlers/audio/tick_clock_ref_counted.cc |
diff --git a/components/copresence/handlers/audio/tick_clock_ref_counted.cc b/components/copresence/handlers/audio/tick_clock_ref_counted.cc |
index 3e7e28d3f5d9c2c4fbe81f12e0c8da3c39f61676..eb84125cadf2b4e1809857838c87df91fddc2f8b 100644 |
--- a/components/copresence/handlers/audio/tick_clock_ref_counted.cc |
+++ b/components/copresence/handlers/audio/tick_clock_ref_counted.cc |
@@ -9,14 +9,15 @@ |
namespace copresence { |
TickClockRefCounted::TickClockRefCounted(scoped_ptr<base::TickClock> clock) |
- : clock_(clock.Pass()) { |
-} |
+ : clock_(clock.Pass()) {} |
+ |
+TickClockRefCounted::TickClockRefCounted(base::TickClock* clock) |
+ : clock_(make_scoped_ptr(clock)) {} |
-base::TimeTicks TickClockRefCounted::NowTicks() { |
+base::TimeTicks TickClockRefCounted::NowTicks() const { |
return clock_->NowTicks(); |
} |
-TickClockRefCounted::~TickClockRefCounted() { |
-} |
+TickClockRefCounted::~TickClockRefCounted() {} |
} // namespace copresence |