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

Unified Diff: components/sync_driver/model_association_manager.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: components/sync_driver/model_association_manager.h
diff --git a/components/sync_driver/model_association_manager.h b/components/sync_driver/model_association_manager.h
index 56d291fef7414f5a9b41b9bf1d4305007e944a44..b1491d8222f7c14210fada8b36d97f5cebb2404c 100644
--- a/components/sync_driver/model_association_manager.h
+++ b/components/sync_driver/model_association_manager.h
@@ -84,7 +84,7 @@ class ModelAssociationManager {
// and modify the timer.
// TODO(sync) : This would go away if we made this class be able to do
// Dependency injection. crbug.com/129212.
- base::OneShotTimer<ModelAssociationManager>* GetTimerForTesting();
+ base::OneShotTimer* GetTimerForTesting();
State state() const { return state_; }
@@ -149,7 +149,7 @@ class ModelAssociationManager {
ModelAssociationManagerDelegate* delegate_;
// Timer to track and limit how long a datatype takes to model associate.
- base::OneShotTimer<ModelAssociationManager> timer_;
+ base::OneShotTimer timer_;
DataTypeManager::ConfigureStatus configure_status_;
« no previous file with comments | « components/signin/core/browser/gaia_cookie_manager_service.h ('k') | components/sync_driver/model_association_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698