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

Unified Diff: components/sync/model/fake_model_type_change_processor.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
« no previous file with comments | « components/sync/model/fake_model_type_change_processor.h ('k') | components/sync/model/model_error.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/fake_model_type_change_processor.cc
diff --git a/components/sync/model/fake_model_type_change_processor.cc b/components/sync/model/fake_model_type_change_processor.cc
index d415437937139d3ab7d9dc15dcb0c05e763f082d..a71df0f3f5aff2455f1af2b4cc4db1615ec1b168 100644
--- a/components/sync/model/fake_model_type_change_processor.cc
+++ b/components/sync/model/fake_model_type_change_processor.cc
@@ -8,7 +8,6 @@
#include "base/memory/ptr_util.h"
#include "components/sync/model/metadata_batch.h"
#include "components/sync/model/model_type_sync_bridge.h"
-#include "components/sync/model/sync_error.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace syncer {
@@ -40,10 +39,10 @@ void FakeModelTypeChangeProcessor::OnMetadataLoaded(
std::unique_ptr<MetadataBatch> batch) {}
void FakeModelTypeChangeProcessor::OnSyncStarting(
- std::unique_ptr<DataTypeErrorHandler> error_handler,
+ const ModelErrorHandler& error_handler,
const StartCallback& callback) {
if (!callback.is_null()) {
- callback.Run(SyncError(), nullptr);
+ callback.Run(nullptr);
}
}
« no previous file with comments | « components/sync/model/fake_model_type_change_processor.h ('k') | components/sync/model/model_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698