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

Unified Diff: components/sync/driver/model_type_controller_unittest.cc

Issue 2620773002: [Sync] Use ModelError all the way through to ModelTypeController. (Closed)
Patch Set: const& everything and use a typedef. Created 3 years, 11 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/model_type_controller_unittest.cc
diff --git a/components/sync/driver/model_type_controller_unittest.cc b/components/sync/driver/model_type_controller_unittest.cc
index 3f491b3a4645de035bff6c48e75848acf3489b78..bf7ef71eb664908c0fb96e42e80d03b9070378d9 100644
--- a/components/sync/driver/model_type_controller_unittest.cc
+++ b/components/sync/driver/model_type_controller_unittest.cc
@@ -49,7 +49,7 @@ class TestModelTypeProcessor : public FakeModelTypeChangeProcessor,
weak_factory_(this) {}
// ModelTypeChangeProcessor implementation.
- void OnSyncStarting(std::unique_ptr<DataTypeErrorHandler> error_handler,
+ void OnSyncStarting(const ModelErrorHandler& error_handler,
const StartCallback& callback) override {
std::unique_ptr<ActivationContext> activation_context =
base::MakeUnique<ActivationContext>();
@@ -58,7 +58,7 @@ class TestModelTypeProcessor : public FakeModelTypeChangeProcessor,
activation_context->type_processor =
base::MakeUnique<ModelTypeProcessorProxy>(
weak_factory_.GetWeakPtr(), base::ThreadTaskRunnerHandle::Get());
- callback.Run(SyncError(), std::move(activation_context));
+ callback.Run(std::move(activation_context));
}
void DisableSync() override { (*disable_sync_call_count_)++; }
« no previous file with comments | « components/sync/driver/model_type_controller.cc ('k') | components/sync/driver/proxy_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698