| 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/memory/weak_ptr.h" | |
| 9 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "components/sync/api/data_type_error_handler_impl.h" | 9 #include "components/sync/api/data_type_error_handler_impl.h" |
| 11 #include "components/sync/api/sync_error.h" | 10 #include "components/sync/api/sync_error.h" |
| 12 #include "components/sync/api/sync_merge_result.h" | 11 #include "components/sync/api/sync_merge_result.h" |
| 13 #include "components/sync/api/syncable_service.h" | 12 #include "components/sync/api/syncable_service.h" |
| 14 #include "components/sync/base/bind_to_task_runner.h" | 13 #include "components/sync/base/bind_to_task_runner.h" |
| 15 #include "components/sync/base/data_type_histogram.h" | 14 #include "components/sync/base/data_type_histogram.h" |
| 16 #include "components/sync/base/model_type.h" | 15 #include "components/sync/base/model_type.h" |
| 17 #include "components/sync/driver/generic_change_processor_factory.h" | 16 #include "components/sync/driver/generic_change_processor_factory.h" |
| 18 #include "components/sync/driver/sync_api_component_factory.h" | 17 #include "components/sync/driver/sync_api_component_factory.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 237 |
| 239 std::unique_ptr<syncer::DataTypeErrorHandler> | 238 std::unique_ptr<syncer::DataTypeErrorHandler> |
| 240 NonUIDataTypeController::CreateErrorHandler() { | 239 NonUIDataTypeController::CreateErrorHandler() { |
| 241 DCHECK(CalledOnValidThread()); | 240 DCHECK(CalledOnValidThread()); |
| 242 return base::MakeUnique<syncer::DataTypeErrorHandlerImpl>( | 241 return base::MakeUnique<syncer::DataTypeErrorHandlerImpl>( |
| 243 base::ThreadTaskRunnerHandle::Get(), dump_stack_, | 242 base::ThreadTaskRunnerHandle::Get(), dump_stack_, |
| 244 base::Bind(&NonUIDataTypeController::DisableImpl, base::AsWeakPtr(this))); | 243 base::Bind(&NonUIDataTypeController::DisableImpl, base::AsWeakPtr(this))); |
| 245 } | 244 } |
| 246 | 245 |
| 247 } // namespace sync_driver | 246 } // namespace sync_driver |
| OLD | NEW |