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/memory/weak_ptr.h" | |
13 #include "base/profiler/scoped_tracker.h" | 12 #include "base/profiler/scoped_tracker.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
15 #include "components/sync/api/data_type_error_handler_impl.h" | 14 #include "components/sync/api/data_type_error_handler_impl.h" |
16 #include "components/sync/api/sync_error.h" | 15 #include "components/sync/api/sync_error.h" |
17 #include "components/sync/api/sync_merge_result.h" | 16 #include "components/sync/api/sync_merge_result.h" |
18 #include "components/sync/api/syncable_service.h" | 17 #include "components/sync/api/syncable_service.h" |
19 #include "components/sync/base/data_type_histogram.h" | 18 #include "components/sync/base/data_type_histogram.h" |
20 #include "components/sync/base/model_type.h" | 19 #include "components/sync/base/model_type.h" |
21 #include "components/sync/driver/generic_change_processor_factory.h" | 20 #include "components/sync/driver/generic_change_processor_factory.h" |
22 #include "components/sync/driver/shared_change_processor_ref.h" | 21 #include "components/sync/driver/shared_change_processor_ref.h" |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 ModelTypeToHistogramInt(type()), | 362 ModelTypeToHistogramInt(type()), |
364 syncer::MODEL_TYPE_COUNT); | 363 syncer::MODEL_TYPE_COUNT); |
365 #define PER_DATA_TYPE_MACRO(type_str) \ | 364 #define PER_DATA_TYPE_MACRO(type_str) \ |
366 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \ | 365 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \ |
367 MAX_CONFIGURE_RESULT); | 366 MAX_CONFIGURE_RESULT); |
368 SYNC_DATA_TYPE_HISTOGRAM(type()); | 367 SYNC_DATA_TYPE_HISTOGRAM(type()); |
369 #undef PER_DATA_TYPE_MACRO | 368 #undef PER_DATA_TYPE_MACRO |
370 } | 369 } |
371 | 370 |
372 } // namespace sync_driver | 371 } // namespace sync_driver |
OLD | NEW |