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

Unified Diff: components/sync/model/mock_model_type_store.cc

Issue 2618483003: [Sync] Introduce ModelError for USS error handling. (Closed)
Patch Set: Address comments. 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_sync_bridge.cc ('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/mock_model_type_store.cc
diff --git a/components/sync/model/mock_model_type_store.cc b/components/sync/model/mock_model_type_store.cc
index 73b512c3ea0a96cb2026ae22cd79ac07c6f48524..4c5a08fb46861d8a7f443c5449759c0788c2b43c 100644
--- a/components/sync/model/mock_model_type_store.cc
+++ b/components/sync/model/mock_model_type_store.cc
@@ -12,12 +12,13 @@
#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "components/sync/model/metadata_batch.h"
+#include "components/sync/model/model_error.h"
namespace syncer {
-MockModelTypeStore::MockModelTypeStore() {}
-
-MockModelTypeStore::~MockModelTypeStore() {}
+MockModelTypeStore::MockModelTypeStore() = default;
+MockModelTypeStore::~MockModelTypeStore() = default;
void MockModelTypeStore::ReadData(const IdList& id_list,
const ReadDataCallback& callback) {
@@ -46,7 +47,7 @@ void MockModelTypeStore::ReadAllMetadata(const ReadMetadataCallback& callback) {
read_all_metadata_handler_.Run(callback);
} else {
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(callback, SyncError(),
+ FROM_HERE, base::Bind(callback, ModelError(),
base::Passed(std::unique_ptr<MetadataBatch>())));
}
}
« no previous file with comments | « components/sync/model/fake_model_type_sync_bridge.cc ('k') | components/sync/model/model_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698