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

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

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
Index: extensions/browser/api/cast_channel/logger.h
diff --git a/extensions/browser/api/cast_channel/logger.h b/extensions/browser/api/cast_channel/logger.h
index d7ec4f282e2990ba0edbcc60827be923401a21f9..8a185ba51f616cd35120b46a8ae647c5554b140a 100644
--- a/extensions/browser/api/cast_channel/logger.h
+++ b/extensions/browser/api/cast_channel/logger.h
@@ -37,7 +37,7 @@ class Logger : public base::RefCounted<Logger> {
// |clock|: Clock used for generating timestamps for the events. Owned by
// this class.
// |unix_epoch_time_ticks|: The TimeTicks that corresponds to Unix epoch.
- Logger(scoped_ptr<base::TickClock> clock,
+ Logger(const scoped_refptr<base::TickClock>&,
base::TimeTicks unix_epoch_time_ticks);
// For newly created sockets. Will create an event and log a
@@ -122,7 +122,7 @@ class Logger : public base::RefCounted<Logger> {
int channel_id,
const proto::SocketEvent& socket_event);
- scoped_ptr<base::TickClock> clock_;
+ scoped_refptr<base::TickClock> clock_;
AggregatedSocketEventLogMap aggregated_socket_events_;
base::TimeTicks unix_epoch_time_ticks_;
« no previous file with comments | « extensions/browser/api/cast_channel/cast_channel_api.cc ('k') | extensions/browser/api/cast_channel/logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698