summaryrefslogtreecommitdiffstats
path: root/content/browser/media/audio_stream_monitor.h
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2015-09-24 00:53:00 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-24 07:53:38 +0000
commit8c3eb804c56b7173f00e58e040f47fe867dabda7 (patch)
tree3dee4211092c1942e4eaf24684f3255cfddd9e34 /content/browser/media/audio_stream_monitor.h
parentf7033f79311149ae641bcaa3986c753f60f1db7e (diff)
downloadchromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.zip
chromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.tar.gz
chromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.tar.bz2
base: Template methods on Timer classes instead of the classes themselves.
The base class for OneShotTimer and DelayedTimer is templated but only the Start method needs to be (which has a TODO to make it go away entirely too). The DelayedTimer class is also templated but only its constructor needs to be, and the type can be inferred at the callsite, so less typing all around. R=thakis@chromium.org TBR=sky,brettw BUG=148832 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1355063004 Cr-Commit-Position: refs/heads/master@{#350496}
Diffstat (limited to 'content/browser/media/audio_stream_monitor.h')
-rw-r--r--content/browser/media/audio_stream_monitor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/media/audio_stream_monitor.h b/content/browser/media/audio_stream_monitor.h
index bf5de68..7756d3e 100644
--- a/content/browser/media/audio_stream_monitor.h
+++ b/content/browser/media/audio_stream_monitor.h
@@ -139,11 +139,11 @@ class CONTENT_EXPORT AudioStreamMonitor {
bool was_recently_audible_;
// Calls Poll() at regular intervals while |poll_callbacks_| is non-empty.
- base::RepeatingTimer<AudioStreamMonitor> poll_timer_;
+ base::RepeatingTimer poll_timer_;
// Started only when an indicator is toggled on, to turn it off again in the
// future.
- base::OneShotTimer<AudioStreamMonitor> off_timer_;
+ base::OneShotTimer off_timer_;
DISALLOW_COPY_AND_ASSIGN(AudioStreamMonitor);
};