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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "components/sync_driver/generic_change_processor_factory.h" | 9 #include "components/sync_driver/generic_change_processor_factory.h" |
10 #include "components/sync_driver/shared_change_processor_ref.h" | 10 #include "components/sync_driver/shared_change_processor_ref.h" |
11 #include "sync/api/sync_error.h" | 11 #include "sync/api/sync_error.h" |
12 #include "sync/api/syncable_service.h" | 12 #include "sync/api/syncable_service.h" |
13 #include "sync/internal_api/public/base/model_type.h" | 13 #include "sync/internal_api/public/base/model_type.h" |
14 #include "sync/util/data_type_histogram.h" | 14 #include "sync/util/data_type_histogram.h" |
15 | 15 |
16 namespace browser_sync { | 16 namespace sync_driver { |
17 | 17 |
18 UIDataTypeController::UIDataTypeController() | 18 UIDataTypeController::UIDataTypeController() |
19 : DataTypeController(base::MessageLoopProxy::current(), | 19 : DataTypeController(base::MessageLoopProxy::current(), |
20 base::Closure(), | 20 base::Closure(), |
21 DisableTypeCallback()), | 21 DisableTypeCallback()), |
22 sync_factory_(NULL), | 22 sync_factory_(NULL), |
23 state_(NOT_RUNNING), | 23 state_(NOT_RUNNING), |
24 type_(syncer::UNSPECIFIED) { | 24 type_(syncer::UNSPECIFIED) { |
25 } | 25 } |
26 | 26 |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeStartFailures", | 344 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeStartFailures", |
345 ModelTypeToHistogramInt(type()), | 345 ModelTypeToHistogramInt(type()), |
346 syncer::MODEL_TYPE_COUNT); | 346 syncer::MODEL_TYPE_COUNT); |
347 #define PER_DATA_TYPE_MACRO(type_str) \ | 347 #define PER_DATA_TYPE_MACRO(type_str) \ |
348 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "StartFailure", result, \ | 348 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "StartFailure", result, \ |
349 MAX_START_RESULT); | 349 MAX_START_RESULT); |
350 SYNC_DATA_TYPE_HISTOGRAM(type()); | 350 SYNC_DATA_TYPE_HISTOGRAM(type()); |
351 #undef PER_DATA_TYPE_MACRO | 351 #undef PER_DATA_TYPE_MACRO |
352 } | 352 } |
353 | 353 |
354 } // namespace browser_sync | 354 } // namespace sync_driver |
OLD | NEW |