| Index: chrome/browser/sync/glue/data_type_manager_impl.h
|
| diff --git a/chrome/browser/sync/glue/data_type_manager_impl.h b/chrome/browser/sync/glue/data_type_manager_impl.h
|
| index 9764981c475247bcaf2fac279dd0b7f0b568871b..bd7707472fc2ca9ae999310381d1ee708882e0c3 100644
|
| --- a/chrome/browser/sync/glue/data_type_manager_impl.h
|
| +++ b/chrome/browser/sync/glue/data_type_manager_impl.h
|
| @@ -13,6 +13,7 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/task.h"
|
| +#include "base/time.h"
|
|
|
| namespace browser_sync {
|
|
|
| @@ -59,6 +60,10 @@ class DataTypeManagerImpl : public DataTypeManager {
|
| const tracked_objects::Location& location);
|
| void SetBlockedAndNotify();
|
|
|
| + // Add to |configure_time_delta_| the time since we last called
|
| + // Restart().
|
| + void AddToConfigureTime();
|
| +
|
| SyncBackendHost* backend_;
|
| // Map of all data type controllers that are available for sync.
|
| // This list is determined at startup by various command line flags.
|
| @@ -79,6 +84,13 @@ class DataTypeManagerImpl : public DataTypeManager {
|
|
|
| ScopedRunnableMethodFactory<DataTypeManagerImpl> method_factory_;
|
|
|
| + // The last time Restart() was called.
|
| + base::Time last_restart_time_;
|
| +
|
| + // The accumulated time spent between calls to Restart() and going
|
| + // to the DONE/BLOCKED state.
|
| + base::TimeDelta configure_time_delta_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl);
|
| };
|
|
|
|
|