OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sync/api/fake_model_type_change_processor.h" | 5 #include "components/sync/api/fake_model_type_change_processor.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "sync/api/metadata_batch.h" | 12 #include "components/sync/api/metadata_batch.h" |
13 #include "sync/api/metadata_change_list.h" | 13 #include "components/sync/api/metadata_change_list.h" |
14 #include "sync/api/model_type_service.h" | 14 #include "components/sync/api/model_type_service.h" |
15 #include "sync/api/sync_error.h" | 15 #include "components/sync/api/sync_error.h" |
16 | 16 |
17 namespace syncer_v2 { | 17 namespace syncer_v2 { |
18 | 18 |
19 // static | 19 // static |
20 std::unique_ptr<ModelTypeChangeProcessor> FakeModelTypeChangeProcessor::Create( | 20 std::unique_ptr<ModelTypeChangeProcessor> FakeModelTypeChangeProcessor::Create( |
21 syncer::ModelType type, | 21 syncer::ModelType type, |
22 ModelTypeService* service) { | 22 ModelTypeService* service) { |
23 return base::WrapUnique(new FakeModelTypeChangeProcessor()); | 23 return base::WrapUnique(new FakeModelTypeChangeProcessor()); |
24 } | 24 } |
25 | 25 |
(...skipping 23 matching lines...) Expand all Loading... |
49 | 49 |
50 void FakeModelTypeChangeProcessor::DisableSync() {} | 50 void FakeModelTypeChangeProcessor::DisableSync() {} |
51 | 51 |
52 syncer::SyncError FakeModelTypeChangeProcessor::CreateAndUploadError( | 52 syncer::SyncError FakeModelTypeChangeProcessor::CreateAndUploadError( |
53 const tracked_objects::Location& location, | 53 const tracked_objects::Location& location, |
54 const std::string& message) { | 54 const std::string& message) { |
55 return syncer::SyncError(); | 55 return syncer::SyncError(); |
56 } | 56 } |
57 | 57 |
58 } // namespace syncer_v2 | 58 } // namespace syncer_v2 |
OLD | NEW |