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

Unified Diff: remoting/host/config_file_watcher.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 | « remoting/host/clipboard_mac.mm ('k') | remoting/host/continue_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/config_file_watcher.cc
diff --git a/remoting/host/config_file_watcher.cc b/remoting/host/config_file_watcher.cc
index 07560855027653a9f772e17563c26dd12371d245..85d38e032f1de9a893a0c101b2a9c2f8e2a39d84 100644
--- a/remoting/host/config_file_watcher.cc
+++ b/remoting/host/config_file_watcher.cc
@@ -68,7 +68,7 @@ class ConfigFileWatcherImpl
std::string config_;
base::FilePath config_path_;
- scoped_ptr<base::DelayTimer<ConfigFileWatcherImpl> > config_updated_timer_;
+ scoped_ptr<base::DelayTimer> config_updated_timer_;
// Number of times an attempt to read the configuration file failed.
int retries_;
@@ -134,9 +134,9 @@ void ConfigFileWatcherImpl::WatchOnIoThread() {
// Create the timer that will be used for delayed-reading the configuration
// file.
- config_updated_timer_.reset(new base::DelayTimer<ConfigFileWatcherImpl>(
- FROM_HERE, base::TimeDelta::FromSeconds(2), this,
- &ConfigFileWatcherImpl::ReloadConfig));
+ config_updated_timer_.reset(
+ new base::DelayTimer(FROM_HERE, base::TimeDelta::FromSeconds(2), this,
+ &ConfigFileWatcherImpl::ReloadConfig));
// Start watching the configuration file.
config_watcher_.reset(new base::FilePathWatcher());
« no previous file with comments | « remoting/host/clipboard_mac.mm ('k') | remoting/host/continue_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698