| 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/model_type_controller.h" | 5 #include "components/sync/driver/model_type_controller.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "components/sync/base/bind_to_task_runner.h" | 15 #include "components/sync/base/bind_to_task_runner.h" |
| 16 #include "components/sync/base/data_type_histogram.h" | 16 #include "components/sync/base/data_type_histogram.h" |
| 17 #include "components/sync/core/activation_context.h" | |
| 18 #include "components/sync/driver/backend_data_type_configurer.h" | 17 #include "components/sync/driver/backend_data_type_configurer.h" |
| 19 #include "components/sync/driver/sync_client.h" | 18 #include "components/sync/driver/sync_client.h" |
| 19 #include "components/sync/engine/activation_context.h" |
| 20 #include "components/sync/model/data_type_error_handler_impl.h" | 20 #include "components/sync/model/data_type_error_handler_impl.h" |
| 21 #include "components/sync/model/model_type_change_processor.h" | 21 #include "components/sync/model/model_type_change_processor.h" |
| 22 #include "components/sync/model/model_type_debug_info.h" | 22 #include "components/sync/model/model_type_debug_info.h" |
| 23 #include "components/sync/model/model_type_service.h" | 23 #include "components/sync/model/model_type_service.h" |
| 24 #include "components/sync/model/sync_error.h" | 24 #include "components/sync/model/sync_error.h" |
| 25 #include "components/sync/model/sync_merge_result.h" | 25 #include "components/sync/model/sync_merge_result.h" |
| 26 | 26 |
| 27 namespace syncer { | 27 namespace syncer { |
| 28 | 28 |
| 29 ModelTypeController::ModelTypeController( | 29 ModelTypeController::ModelTypeController( |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeStartFailures", | 223 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeStartFailures", |
| 224 ModelTypeToHistogramInt(type()), MODEL_TYPE_COUNT); | 224 ModelTypeToHistogramInt(type()), MODEL_TYPE_COUNT); |
| 225 #define PER_DATA_TYPE_MACRO(type_str) \ | 225 #define PER_DATA_TYPE_MACRO(type_str) \ |
| 226 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \ | 226 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \ |
| 227 MAX_CONFIGURE_RESULT); | 227 MAX_CONFIGURE_RESULT); |
| 228 SYNC_DATA_TYPE_HISTOGRAM(type()); | 228 SYNC_DATA_TYPE_HISTOGRAM(type()); |
| 229 #undef PER_DATA_TYPE_MACRO | 229 #undef PER_DATA_TYPE_MACRO |
| 230 } | 230 } |
| 231 | 231 |
| 232 } // namespace syncer | 232 } // namespace syncer |
| OLD | NEW |