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/ui_data_type_controller.h" | 5 #include "components/sync/driver/ui_data_type_controller.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/profiler/scoped_tracker.h" | 12 #include "base/profiler/scoped_tracker.h" |
13 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "components/sync/api/data_type_error_handler_impl.h" | |
15 #include "components/sync/api/sync_error.h" | |
16 #include "components/sync/api/sync_merge_result.h" | |
17 #include "components/sync/api/syncable_service.h" | |
18 #include "components/sync/base/data_type_histogram.h" | 14 #include "components/sync/base/data_type_histogram.h" |
19 #include "components/sync/base/model_type.h" | 15 #include "components/sync/base/model_type.h" |
20 #include "components/sync/driver/generic_change_processor_factory.h" | 16 #include "components/sync/driver/generic_change_processor_factory.h" |
21 #include "components/sync/driver/shared_change_processor_ref.h" | 17 #include "components/sync/driver/shared_change_processor_ref.h" |
22 #include "components/sync/driver/sync_client.h" | 18 #include "components/sync/driver/sync_client.h" |
23 #include "components/sync/driver/sync_service.h" | 19 #include "components/sync/driver/sync_service.h" |
| 20 #include "components/sync/model/data_type_error_handler_impl.h" |
| 21 #include "components/sync/model/sync_error.h" |
| 22 #include "components/sync/model/sync_merge_result.h" |
| 23 #include "components/sync/model/syncable_service.h" |
24 | 24 |
25 namespace syncer { | 25 namespace syncer { |
26 | 26 |
27 UIDataTypeController::UIDataTypeController() | 27 UIDataTypeController::UIDataTypeController() |
28 : DirectoryDataTypeController(UNSPECIFIED, base::Closure(), nullptr), | 28 : DirectoryDataTypeController(UNSPECIFIED, base::Closure(), nullptr), |
29 state_(NOT_RUNNING) {} | 29 state_(NOT_RUNNING) {} |
30 | 30 |
31 UIDataTypeController::UIDataTypeController(ModelType type, | 31 UIDataTypeController::UIDataTypeController(ModelType type, |
32 const base::Closure& dump_stack, | 32 const base::Closure& dump_stack, |
33 SyncClient* sync_client) | 33 SyncClient* sync_client) |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeStartFailures", | 355 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeStartFailures", |
356 ModelTypeToHistogramInt(type()), MODEL_TYPE_COUNT); | 356 ModelTypeToHistogramInt(type()), MODEL_TYPE_COUNT); |
357 #define PER_DATA_TYPE_MACRO(type_str) \ | 357 #define PER_DATA_TYPE_MACRO(type_str) \ |
358 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \ | 358 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \ |
359 MAX_CONFIGURE_RESULT); | 359 MAX_CONFIGURE_RESULT); |
360 SYNC_DATA_TYPE_HISTOGRAM(type()); | 360 SYNC_DATA_TYPE_HISTOGRAM(type()); |
361 #undef PER_DATA_TYPE_MACRO | 361 #undef PER_DATA_TYPE_MACRO |
362 } | 362 } |
363 | 363 |
364 } // namespace syncer | 364 } // namespace syncer |
OLD | NEW |