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

Unified Diff: extensions/browser/api/cast_channel/logger.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y Created 6 years, 2 months 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
« no previous file with comments | « extensions/browser/api/cast_channel/logger.h ('k') | media/base/wall_clock_time_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/cast_channel/logger.cc
diff --git a/extensions/browser/api/cast_channel/logger.cc b/extensions/browser/api/cast_channel/logger.cc
index bddf53971c24515792cbe689486390e8a7905159..619eb477e75667a03cfbe15e4436b173d7e210a9 100644
--- a/extensions/browser/api/cast_channel/logger.cc
+++ b/extensions/browser/api/cast_channel/logger.cc
@@ -127,10 +127,10 @@ Logger::AggregatedSocketEventLog::AggregatedSocketEventLog() {
Logger::AggregatedSocketEventLog::~AggregatedSocketEventLog() {
}
-Logger::Logger(scoped_ptr<base::TickClock> clock,
+Logger::Logger(const scoped_refptr<base::TickClock>& clock,
base::TimeTicks unix_epoch_time_ticks)
- : clock_(clock.Pass()), unix_epoch_time_ticks_(unix_epoch_time_ticks) {
- DCHECK(clock_);
+ : clock_(clock), unix_epoch_time_ticks_(unix_epoch_time_ticks) {
+ DCHECK(clock_.get() != NULL);
// Logger may not be necessarily be created on the IO thread, but logging
// happens exclusively there.
« no previous file with comments | « extensions/browser/api/cast_channel/logger.h ('k') | media/base/wall_clock_time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698