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

Unified Diff: components/copresence/timed_map.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/timed_map.h
diff --git a/components/copresence/timed_map.h b/components/copresence/timed_map.h
index 7def76e4401b93c0c6786385daa634f9d64d9e8d..31fd153b917f92f12cbadc313d586c55918c1c87 100644
--- a/components/copresence/timed_map.h
+++ b/components/copresence/timed_map.h
@@ -52,8 +52,8 @@ class TimedMap {
return elt == map_.end() ? kEmptyValue : elt->second;
}
- void set_clock_for_testing(scoped_ptr<base::TickClock> clock) {
- clock_ = clock.Pass();
+ void set_clock_for_testing(const scoped_refptr<base::TickClock>& clock) {
+ clock_ = clock;
}
private:
@@ -83,7 +83,7 @@ class TimedMap {
const ValueType kEmptyValue;
- scoped_ptr<base::TickClock> clock_;
+ scoped_refptr<base::TickClock> clock_;
base::RepeatingTimer<TimedMap> timer_;
const base::TimeDelta lifetime_;
const size_t max_elements_;
« no previous file with comments | « components/copresence/handlers/audio/audio_directive_list.cc ('k') | components/copresence/timed_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698