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

Side by Side Diff: components/sync/api/fake_model_type_change_processor.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/sync/api/fake_model_type_change_processor.h"
6
7 #include "base/callback.h"
8 #include "base/memory/ptr_util.h"
9 #include "components/sync/api/metadata_batch.h"
10 #include "components/sync/api/model_type_service.h"
11 #include "components/sync/api/sync_error.h"
12
13 namespace syncer {
14
15 // static
16 std::unique_ptr<ModelTypeChangeProcessor> FakeModelTypeChangeProcessor::Create(
17 ModelType type,
18 ModelTypeService* service) {
19 return base::WrapUnique(new FakeModelTypeChangeProcessor());
20 }
21
22 FakeModelTypeChangeProcessor::FakeModelTypeChangeProcessor() {}
23 FakeModelTypeChangeProcessor::~FakeModelTypeChangeProcessor() {}
24
25 void FakeModelTypeChangeProcessor::Put(
26 const std::string& client_tag,
27 std::unique_ptr<EntityData> entity_data,
28 MetadataChangeList* metadata_change_list) {}
29
30 void FakeModelTypeChangeProcessor::Delete(
31 const std::string& client_tag,
32 MetadataChangeList* metadata_change_list) {}
33
34 void FakeModelTypeChangeProcessor::OnMetadataLoaded(
35 SyncError error,
36 std::unique_ptr<MetadataBatch> batch) {}
37
38 void FakeModelTypeChangeProcessor::OnSyncStarting(
39 std::unique_ptr<DataTypeErrorHandler> error_handler,
40 const StartCallback& callback) {
41 if (!callback.is_null()) {
42 callback.Run(SyncError(), nullptr);
43 }
44 }
45
46 void FakeModelTypeChangeProcessor::DisableSync() {}
47
48 SyncError FakeModelTypeChangeProcessor::CreateAndUploadError(
49 const tracked_objects::Location& location,
50 const std::string& message) {
51 return SyncError();
52 }
53
54 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/api/fake_model_type_change_processor.h ('k') | components/sync/api/fake_model_type_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698