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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3e7e28d3f5d9c2c4fbe81f12e0c8da3c39f61676 |
--- /dev/null |
+++ b/components/copresence/handlers/audio/tick_clock_ref_counted.cc |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/copresence/handlers/audio/tick_clock_ref_counted.h" |
+ |
+#include "base/time/tick_clock.h" |
+ |
+namespace copresence { |
+ |
+TickClockRefCounted::TickClockRefCounted(scoped_ptr<base::TickClock> clock) |
+ : clock_(clock.Pass()) { |
+} |
+ |
+base::TimeTicks TickClockRefCounted::NowTicks() { |
+ return clock_->NowTicks(); |
+} |
+ |
+TickClockRefCounted::~TickClockRefCounted() { |
+} |
+ |
+} // namespace copresence |