| 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/model_type_service.h" | 5 #include "components/sync/api/model_type_service.h" |
| 6 | 6 |
| 7 #include "sync/api/model_type_change_processor.h" | 7 #include "components/sync/api/model_type_change_processor.h" |
| 8 #include "sync/internal_api/public/data_type_error_handler.h" | 8 #include "components/sync/core/data_type_error_handler.h" |
| 9 | 9 |
| 10 namespace syncer_v2 { | 10 namespace syncer_v2 { |
| 11 | 11 |
| 12 ModelTypeService::ModelTypeService( | 12 ModelTypeService::ModelTypeService( |
| 13 const ChangeProcessorFactory& change_processor_factory, | 13 const ChangeProcessorFactory& change_processor_factory, |
| 14 syncer::ModelType type) | 14 syncer::ModelType type) |
| 15 : change_processor_factory_(change_processor_factory), type_(type) {} | 15 : change_processor_factory_(change_processor_factory), type_(type) {} |
| 16 | 16 |
| 17 ModelTypeService::~ModelTypeService() {} | 17 ModelTypeService::~ModelTypeService() {} |
| 18 | 18 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 ModelTypeChangeProcessor* ModelTypeService::change_processor() const { | 51 ModelTypeChangeProcessor* ModelTypeService::change_processor() const { |
| 52 return change_processor_.get(); | 52 return change_processor_.get(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void ModelTypeService::clear_change_processor() { | 55 void ModelTypeService::clear_change_processor() { |
| 56 change_processor_.reset(); | 56 change_processor_.reset(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace syncer_v2 | 59 } // namespace syncer_v2 |
| OLD | NEW |