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

Unified Diff: components/sync/engine_impl/model_type_worker.h

Issue 2442583003: [Sync] Start implementation of migration for USS. (Closed)
Patch Set: Rebase. Created 4 years, 2 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/engine_impl/model_type_worker.h
diff --git a/components/sync/engine_impl/model_type_worker.h b/components/sync/engine_impl/model_type_worker.h
index 70f4925cef2f3d40e1c710199a844fe659c02c07..2d9b93b59280b13590178699f64c8c8e287a8988 100644
--- a/components/sync/engine_impl/model_type_worker.h
+++ b/components/sync/engine_impl/model_type_worker.h
@@ -60,6 +60,7 @@ class ModelTypeWorker : public UpdateHandler,
public:
ModelTypeWorker(ModelType type,
const sync_pb::ModelTypeState& initial_state,
+ bool trigger_initial_sync,
std::unique_ptr<Cryptographer> cryptographer,
NudgeHandler* nudge_handler,
std::unique_ptr<ModelTypeProcessor> model_type_processor,
@@ -97,6 +98,10 @@ class ModelTypeWorker : public UpdateHandler,
// Callback for when our contribution gets a response.
void OnCommitResponse(CommitResponseDataList* response_list);
+ // If migration the directory encounters an error partway through, we need to
+ // clear the update data that has been added so far.
+ void AbortMigration();
+
base::WeakPtr<ModelTypeWorker> AsWeakPtr();
private:

Powered by Google App Engine
This is Rietveld 408576698