Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: components/copresence/handlers/audio/tick_clock_ref_counted.cc

Issue 690213004: Refactoring AudioDirectiveHandler to support testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « components/copresence/handlers/audio/tick_clock_ref_counted.h ('k') | components/copresence/handlers/directive_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698