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

Unified Diff: media/base/pipeline.cc

Issue 11607003: Add a Clock and TickClock interface for mocking out time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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: media/base/pipeline.cc
diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc
index fd8b902d7f3808bb296fae869dde8e0aefee8303..47bbaeab204ffc569895cee73c4185823378aaa0 100644
--- a/media/base/pipeline.cc
+++ b/media/base/pipeline.cc
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "base/callback_helpers.h"
#include "base/compiler_specific.h"
+#include "base/default_clock.h"
#include "base/metrics/histogram.h"
#include "base/message_loop.h"
#include "base/stl_util.h"
@@ -72,7 +73,7 @@ Pipeline::Pipeline(const scoped_refptr<base::MessageLoopProxy>& message_loop,
natural_size_(0, 0),
volume_(1.0f),
playback_rate_(0.0f),
- clock_(new Clock(&base::Time::Now)),
+ clock_(new Clock(base::DefaultClock::Get())),
waiting_for_clock_update_(false),
status_(PIPELINE_OK),
has_audio_(false),

Powered by Google App Engine
This is Rietveld 408576698