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

Unified Diff: chrome/browser/media/cast_transport_host_filter.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 | « chrome/browser/media/cast_transport_host_filter.h ('k') | chrome/renderer/media/cast_session_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/cast_transport_host_filter.cc
diff --git a/chrome/browser/media/cast_transport_host_filter.cc b/chrome/browser/media/cast_transport_host_filter.cc
index 3f7739d506a0523a75f46b7431a6b15ca5e2b961..6cc30cfa8b9a212e02d0a3c817f628b7ab7d5b00 100644
--- a/chrome/browser/media/cast_transport_host_filter.cc
+++ b/chrome/browser/media/cast_transport_host_filter.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/media/cast_transport_host_filter.h"
+#include "base/time/default_tick_clock.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/net/chrome_net_log.h"
#include "content/public/browser/power_save_blocker.h"
@@ -20,7 +21,9 @@ namespace cast {
CastTransportHostFilter::CastTransportHostFilter()
: BrowserMessageFilter(CastMsgStart),
- weak_factory_(this) {}
+ clock_(new base::DefaultTickClock),
+ weak_factory_(this) {
+}
CastTransportHostFilter::~CastTransportHostFilter() {}
@@ -91,7 +94,7 @@ void CastTransportHostFilter::OnNew(
scoped_ptr<media::cast::CastTransportSender> sender =
media::cast::CastTransportSender::Create(
g_browser_process->net_log(),
- &clock_,
+ clock_.get(),
remote_end_point,
make_scoped_ptr(options.DeepCopy()),
base::Bind(&CastTransportHostFilter::NotifyStatusChange,
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.h ('k') | chrome/renderer/media/cast_session_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698