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

Unified Diff: components/copresence/handlers/audio/audio_directive_handler.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: components/copresence/handlers/audio/audio_directive_handler.h
diff --git a/components/copresence/handlers/audio/audio_directive_handler.h b/components/copresence/handlers/audio/audio_directive_handler.h
index 53e4d4b55113506757e8d85c2eb2d5c1f16f02d3..0515657cd33566fe1d3b88062646e87f2b1f3854 100644
--- a/components/copresence/handlers/audio/audio_directive_handler.h
+++ b/components/copresence/handlers/audio/audio_directive_handler.h
@@ -61,6 +61,9 @@ class AudioDirectiveHandler final {
audio_manager_ = manager.Pass();
}
+ void set_clock_for_testing(const scoped_refptr<base::TickClock>& clock);
+ void set_timer_for_testing(scoped_ptr<base::Timer> timer);
+
private:
friend class AudioDirectiveHandlerTest;
@@ -79,7 +82,7 @@ class AudioDirectiveHandler final {
scoped_ptr<base::Timer> audio_event_timer_;
- scoped_ptr<base::TickClock> clock_;
+ scoped_refptr<base::TickClock> clock_;
DISALLOW_COPY_AND_ASSIGN(AudioDirectiveHandler);
};
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | components/copresence/handlers/audio/audio_directive_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698