Index: components/sync_driver/data_type_controller.h |
diff --git a/components/sync_driver/data_type_controller.h b/components/sync_driver/data_type_controller.h |
index 37fefc6bb330cf4f617b67919119871d593067c5..97b823370c50d09b3a68e777586b02dfa17eb9e7 100644 |
--- a/components/sync_driver/data_type_controller.h |
+++ b/components/sync_driver/data_type_controller.h |
@@ -133,6 +133,13 @@ class DataTypeController |
// UserShare handle to associate model data with. |
void OnUserShareReady(syncer::UserShare* share); |
+ // Whether the DataTypeController is ready to start. This is useful if the |
+ // datatype itself must make the decision about whether it should be enabled |
+ // at all (and therefore whether the initial download of the sync data for |
+ // the type should be performed). |
+ // Returns true by default. |
+ virtual bool ReadyForStart() const; |
+ |
protected: |
friend class base::RefCountedDeleteOnMessageLoop<DataTypeController>; |
friend class base::DeleteHelper<DataTypeController>; |