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

Unified Diff: components/sync/driver/non_blocking_data_type_controller.h

Issue 2254083002: [Sync] Convert NonBlockingDataTypeController to be single-thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dt
Patch Set: Update DeviceInfoService. Created 4 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/non_blocking_data_type_controller.h
diff --git a/components/sync/driver/non_blocking_data_type_controller.h b/components/sync/driver/non_blocking_data_type_controller.h
index b8c61d2bbf61702624585861ea31e04547269bc6..f98661e0b5e92e7010cb3cd55180d25d552c2821 100644
--- a/components/sync/driver/non_blocking_data_type_controller.h
+++ b/components/sync/driver/non_blocking_data_type_controller.h
@@ -89,26 +89,12 @@ class NonBlockingDataTypeController : public sync_driver::DataTypeController {
// The error indicates whether the loading completed successfully.
void LoadModelsDone(ConfigureResult result, const syncer::SyncError& error);
- // Callback passed to the processor to be invoked when the processor has
- // started. This is called on the model thread.
- void OnProcessorStarted(
- syncer::SyncError error,
- std::unique_ptr<syncer_v2::ActivationContext> activation_context);
-
// The function will do the real work when OnProcessorStarted got called. This
// is called on the UI thread.
- void OnProcessorStartedOnUIThread(
+ void OnProcessorStarted(
syncer::SyncError error,
std::unique_ptr<syncer_v2::ActivationContext> activation_context);
- // The function LoadModels() will call this function to do some works which
- // need to be done on model thread.
- void LoadModelsOnModelThread();
-
- // Stop() posts call to DisableSyncOnModelThread to model thread when it
- // decides sync metadata should be cleared.
- void DisableSyncOnModelThread();
-
// Model Type for this controller
syncer::ModelType model_type_;
« no previous file with comments | « components/sync/driver/fake_sync_client.cc ('k') | components/sync/driver/non_blocking_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698