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

Unified Diff: chrome/browser/extensions/api/audio_modem/audio_modem_api.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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: chrome/browser/extensions/api/audio_modem/audio_modem_api.h
diff --git a/chrome/browser/extensions/api/audio_modem/audio_modem_api.h b/chrome/browser/extensions/api/audio_modem/audio_modem_api.h
index dcccbfeff43b9985e02c8b7faecd3853e5dfdd9b..77034b5ee3a64ee9349ae147868b43554f47b565 100644
--- a/chrome/browser/extensions/api/audio_modem/audio_modem_api.h
+++ b/chrome/browser/extensions/api/audio_modem/audio_modem_api.h
@@ -73,11 +73,11 @@ class AudioModemAPI final : public BrowserContextKeyedAPI {
std::string transmitters_[2];
// Timeouts for the currently active transmits, indexed by AudioType.
- base::OneShotTimer<AudioModemAPI> transmit_timers_[2];
+ base::OneShotTimer transmit_timers_[2];
// Maps of currently receiving app ID => timeouts. Indexed by AudioType.
// We own all of these pointers. Do not remove them without calling delete.
- std::map<std::string, base::OneShotTimer<AudioModemAPI>*> receive_timers_[2];
+ std::map<std::string, base::OneShotTimer*> receive_timers_[2];
// BrowserContextKeyedAPI implementation.
static const bool kServiceIsCreatedWithBrowserContext = false;

Powered by Google App Engine
This is Rietveld 408576698