| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/driver/non_ui_data_type_controller.h" | 5 #include "components/sync/driver/non_ui_data_type_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "components/sync/api/data_type_error_handler_impl.h" | |
| 10 #include "components/sync/api/sync_error.h" | |
| 11 #include "components/sync/api/sync_merge_result.h" | |
| 12 #include "components/sync/api/syncable_service.h" | |
| 13 #include "components/sync/base/bind_to_task_runner.h" | 9 #include "components/sync/base/bind_to_task_runner.h" |
| 14 #include "components/sync/base/data_type_histogram.h" | 10 #include "components/sync/base/data_type_histogram.h" |
| 15 #include "components/sync/base/model_type.h" | 11 #include "components/sync/base/model_type.h" |
| 16 #include "components/sync/driver/generic_change_processor_factory.h" | 12 #include "components/sync/driver/generic_change_processor_factory.h" |
| 17 #include "components/sync/driver/sync_api_component_factory.h" | 13 #include "components/sync/driver/sync_api_component_factory.h" |
| 18 #include "components/sync/driver/sync_client.h" | 14 #include "components/sync/driver/sync_client.h" |
| 19 #include "components/sync/driver/sync_service.h" | 15 #include "components/sync/driver/sync_service.h" |
| 16 #include "components/sync/model/data_type_error_handler_impl.h" |
| 17 #include "components/sync/model/sync_error.h" |
| 18 #include "components/sync/model/sync_merge_result.h" |
| 19 #include "components/sync/model/syncable_service.h" |
| 20 | 20 |
| 21 namespace syncer { | 21 namespace syncer { |
| 22 | 22 |
| 23 SharedChangeProcessor* NonUIDataTypeController::CreateSharedChangeProcessor() { | 23 SharedChangeProcessor* NonUIDataTypeController::CreateSharedChangeProcessor() { |
| 24 return new SharedChangeProcessor(type()); | 24 return new SharedChangeProcessor(type()); |
| 25 } | 25 } |
| 26 | 26 |
| 27 NonUIDataTypeController::NonUIDataTypeController( | 27 NonUIDataTypeController::NonUIDataTypeController( |
| 28 ModelType type, | 28 ModelType type, |
| 29 const base::Closure& dump_stack, | 29 const base::Closure& dump_stack, |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 | 233 |
| 234 std::unique_ptr<DataTypeErrorHandler> | 234 std::unique_ptr<DataTypeErrorHandler> |
| 235 NonUIDataTypeController::CreateErrorHandler() { | 235 NonUIDataTypeController::CreateErrorHandler() { |
| 236 DCHECK(CalledOnValidThread()); | 236 DCHECK(CalledOnValidThread()); |
| 237 return base::MakeUnique<DataTypeErrorHandlerImpl>( | 237 return base::MakeUnique<DataTypeErrorHandlerImpl>( |
| 238 base::ThreadTaskRunnerHandle::Get(), dump_stack_, | 238 base::ThreadTaskRunnerHandle::Get(), dump_stack_, |
| 239 base::Bind(&NonUIDataTypeController::DisableImpl, base::AsWeakPtr(this))); | 239 base::Bind(&NonUIDataTypeController::DisableImpl, base::AsWeakPtr(this))); |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace syncer | 242 } // namespace syncer |
| OLD | NEW |