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

Unified Diff: sync/engine/sync_scheduler_impl.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
« no previous file with comments | « storage/browser/quota/storage_monitor.h ('k') | ui/accelerated_widget_mac/io_surface_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/sync_scheduler_impl.h
diff --git a/sync/engine/sync_scheduler_impl.h b/sync/engine/sync_scheduler_impl.h
index 0304da94958ad65b1ebb7bfb0530a468a9f0719a..4e5fb17457eafde11b4ab1071f7b0616d2f8bc8e 100644
--- a/sync/engine/sync_scheduler_impl.h
+++ b/sync/engine/sync_scheduler_impl.h
@@ -255,7 +255,7 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
// Timer for polling. Restarted on each successful poll, and when entering
// normal sync mode or exiting an error state. Not active in configuration
// mode.
- base::OneShotTimer<SyncSchedulerImpl> poll_timer_;
+ base::OneShotTimer poll_timer_;
// The mode of operation.
Mode mode_;
@@ -266,10 +266,10 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
scoped_ptr<BackoffDelayProvider> delay_provider_;
// The event that will wake us up.
- base::OneShotTimer<SyncSchedulerImpl> pending_wakeup_timer_;
+ base::OneShotTimer pending_wakeup_timer_;
// An event that fires when data type throttling expires.
- base::OneShotTimer<SyncSchedulerImpl> type_unthrottle_timer_;
+ base::OneShotTimer type_unthrottle_timer_;
// Storage for variables related to an in-progress configure request. Note
// that (mode_ != CONFIGURATION_MODE) \implies !pending_configure_params_.
@@ -315,7 +315,7 @@ class SYNC_EXPORT_PRIVATE SyncSchedulerImpl
JobPriority next_sync_session_job_priority_;
// One-shot timer for scheduling GU retry according to delay set by server.
- base::OneShotTimer<SyncSchedulerImpl> retry_timer_;
+ base::OneShotTimer retry_timer_;
base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_;
« no previous file with comments | « storage/browser/quota/storage_monitor.h ('k') | ui/accelerated_widget_mac/io_surface_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698