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 "components/sync/api/stub_model_type_service.h" | 5 #include "components/sync/api/stub_model_type_service.h" |
6 | 6 |
7 #include <string> | |
8 | |
9 #include "base/bind.h" | 7 #include "base/bind.h" |
10 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
11 #include "components/sync/api/fake_model_type_change_processor.h" | 9 #include "components/sync/api/fake_model_type_change_processor.h" |
12 | 10 |
13 namespace syncer_v2 { | 11 namespace syncer_v2 { |
14 | 12 |
15 StubModelTypeService::StubModelTypeService() | 13 StubModelTypeService::StubModelTypeService() |
16 : StubModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {} | 14 : StubModelTypeService(base::Bind(&FakeModelTypeChangeProcessor::Create)) {} |
17 | 15 |
18 StubModelTypeService::StubModelTypeService( | 16 StubModelTypeService::StubModelTypeService( |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 return std::string(); | 49 return std::string(); |
52 } | 50 } |
53 | 51 |
54 void StubModelTypeService::OnChangeProcessorSet() {} | 52 void StubModelTypeService::OnChangeProcessorSet() {} |
55 | 53 |
56 bool StubModelTypeService::HasChangeProcessor() const { | 54 bool StubModelTypeService::HasChangeProcessor() const { |
57 return change_processor() != nullptr; | 55 return change_processor() != nullptr; |
58 } | 56 } |
59 | 57 |
60 } // namespace syncer_v2 | 58 } // namespace syncer_v2 |
OLD | NEW |