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

Unified Diff: content/browser/device_sensors/data_fetcher_shared_memory_base.cc

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
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/device_sensors/data_fetcher_shared_memory_base.cc
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_base.cc b/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
index ac86c6f8c69613e67b92b2385110ae491eeff8fa..13c2135e854c491d1f3fbda10f6aa655ba0d9c2c 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
+++ b/content/browser/device_sensors/data_fetcher_shared_memory_base.cc
@@ -51,7 +51,7 @@ class DataFetcherSharedMemoryBase::PollingThread : public base::Thread {
unsigned consumers_bitmask_;
DataFetcherSharedMemoryBase* fetcher_;
- scoped_ptr<base::RepeatingTimer<PollingThread> > timer_;
+ scoped_ptr<base::RepeatingTimer> timer_;
DISALLOW_COPY_AND_ASSIGN(PollingThread);
};
@@ -77,7 +77,7 @@ void DataFetcherSharedMemoryBase::PollingThread::AddConsumer(
consumers_bitmask_ |= consumer_type;
if (!timer_ && fetcher_->GetType() == FETCHER_TYPE_POLLING_CALLBACK) {
- timer_.reset(new base::RepeatingTimer<PollingThread>());
+ timer_.reset(new base::RepeatingTimer());
timer_->Start(FROM_HERE,
fetcher_->GetInterval(),
this, &PollingThread::DoPoll);
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | content/browser/download/download_file_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698