OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_service.h" | 5 #include "components/sync/api/fake_model_type_service.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "sync/api/fake_model_type_change_processor.h" | 11 #include "components/sync/api/fake_model_type_change_processor.h" |
12 | 12 |
13 namespace syncer_v2 { | 13 namespace syncer_v2 { |
14 | 14 |
15 FakeModelTypeService::FakeModelTypeService() | 15 FakeModelTypeService::FakeModelTypeService() |
16 : FakeModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {} | 16 : FakeModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {} |
17 | 17 |
18 FakeModelTypeService::FakeModelTypeService( | 18 FakeModelTypeService::FakeModelTypeService( |
19 const ChangeProcessorFactory& change_processor_factory) | 19 const ChangeProcessorFactory& change_processor_factory) |
20 : ModelTypeService(change_processor_factory, syncer::PREFERENCES) {} | 20 : ModelTypeService(change_processor_factory, syncer::PREFERENCES) {} |
21 | 21 |
(...skipping 25 matching lines...) Expand all Loading... |
47 return std::string(); | 47 return std::string(); |
48 } | 48 } |
49 | 49 |
50 void FakeModelTypeService::OnChangeProcessorSet() {} | 50 void FakeModelTypeService::OnChangeProcessorSet() {} |
51 | 51 |
52 bool FakeModelTypeService::HasChangeProcessor() const { | 52 bool FakeModelTypeService::HasChangeProcessor() const { |
53 return change_processor() != nullptr; | 53 return change_processor() != nullptr; |
54 } | 54 } |
55 | 55 |
56 } // namespace syncer_v2 | 56 } // namespace syncer_v2 |
OLD | NEW |