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

Unified Diff: components/sync_driver/fake_data_type_controller.h

Issue 420633002: [Sync] Cleanup datatype configuration error handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 6 years, 4 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/fake_data_type_controller.h
diff --git a/components/sync_driver/fake_data_type_controller.h b/components/sync_driver/fake_data_type_controller.h
index 4fa5f7b32c20fb0b0c248ba3f22893606de64a15..840a5b29559091fa0091a8a9e33712d68061dd3b 100644
--- a/components/sync_driver/fake_data_type_controller.h
+++ b/components/sync_driver/fake_data_type_controller.h
@@ -25,34 +25,28 @@ class FakeDataTypeController : public DataTypeController {
virtual void LoadModels(
const ModelLoadCallback& model_load_callback) OVERRIDE;
-
virtual void OnModelLoaded() OVERRIDE;
-
virtual void StartAssociating(const StartCallback& start_callback) OVERRIDE;
-
- void FinishStart(StartResult result);
-
virtual void Stop() OVERRIDE;
-
virtual syncer::ModelType type() const OVERRIDE;
-
virtual std::string name() const OVERRIDE;
-
virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE;
-
virtual ChangeProcessor* GetChangeProcessor() const OVERRIDE;
-
virtual State state() const OVERRIDE;
-
virtual void OnSingleDatatypeUnrecoverableError(
const tracked_objects::Location& from_here,
const std::string& message) OVERRIDE;
+ virtual bool ReadyForStart() const OVERRIDE;
+
+ void FinishStart(ConfigureResult result);
- virtual void SetDelayModelLoad();
+ void SetDelayModelLoad();
void SetModelLoadError(syncer::SyncError error);
- virtual void SimulateModelLoadFinishing();
+ void SimulateModelLoadFinishing();
+
+ void SetReadyForStart(bool ready);
protected:
virtual ~FakeDataTypeController();
@@ -64,6 +58,7 @@ class FakeDataTypeController : public DataTypeController {
StartCallback last_start_callback_;
ModelLoadCallback model_load_callback_;
syncer::SyncError load_error_;
+ bool ready_for_start_;
};
} // namespace sync_driver
« no previous file with comments | « components/sync_driver/failed_data_types_handler.cc ('k') | components/sync_driver/fake_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698