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

Unified Diff: net/http/http_server_properties_manager.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 | « net/http/http_server_properties_manager.h ('k') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_manager.cc
diff --git a/net/http/http_server_properties_manager.cc b/net/http/http_server_properties_manager.cc
index b0b6019df572a90a16267fb4979621e9f896bff2..2577f953cd8d4bee4acbe15531ae5d08d12fbf3e 100644
--- a/net/http/http_server_properties_manager.cc
+++ b/net/http/http_server_properties_manager.cc
@@ -86,8 +86,7 @@ HttpServerPropertiesManager::HttpServerPropertiesManager(
pref_weak_ptr_factory_.reset(
new base::WeakPtrFactory<HttpServerPropertiesManager>(this));
pref_weak_ptr_ = pref_weak_ptr_factory_->GetWeakPtr();
- pref_cache_update_timer_.reset(
- new base::OneShotTimer<HttpServerPropertiesManager>);
+ pref_cache_update_timer_.reset(new base::OneShotTimer);
pref_change_registrar_.Init(pref_service_);
pref_change_registrar_.Add(
path_,
@@ -106,8 +105,7 @@ void HttpServerPropertiesManager::InitializeOnNetworkThread() {
new base::WeakPtrFactory<HttpServerPropertiesManager>(this));
http_server_properties_impl_.reset(new HttpServerPropertiesImpl());
- network_prefs_update_timer_.reset(
- new base::OneShotTimer<HttpServerPropertiesManager>);
+ network_prefs_update_timer_.reset(new base::OneShotTimer);
pref_task_runner_->PostTask(
FROM_HERE,
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/proxy/dhcp_proxy_script_adapter_fetcher_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698