Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: components/sync_driver/ui_data_type_controller.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/profiler/scoped_tracker.h" 12 #include "base/profiler/scoped_tracker.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/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"
19 #include "components/sync/base/model_type.h"
15 #include "components/sync_driver/generic_change_processor_factory.h" 20 #include "components/sync_driver/generic_change_processor_factory.h"
16 #include "components/sync_driver/shared_change_processor_ref.h" 21 #include "components/sync_driver/shared_change_processor_ref.h"
17 #include "components/sync_driver/sync_client.h" 22 #include "components/sync_driver/sync_client.h"
18 #include "components/sync_driver/sync_service.h" 23 #include "components/sync_driver/sync_service.h"
19 #include "sync/api/sync_error.h"
20 #include "sync/api/sync_merge_result.h"
21 #include "sync/api/syncable_service.h"
22 #include "sync/internal_api/public/base/model_type.h"
23 #include "sync/util/data_type_histogram.h"
24 24
25 namespace sync_driver { 25 namespace sync_driver {
26 26
27 UIDataTypeController::UIDataTypeController() 27 UIDataTypeController::UIDataTypeController()
28 : DirectoryDataTypeController(base::ThreadTaskRunnerHandle::Get(), 28 : DirectoryDataTypeController(base::ThreadTaskRunnerHandle::Get(),
29 base::Closure()), 29 base::Closure()),
30 sync_client_(NULL), 30 sync_client_(NULL),
31 state_(NOT_RUNNING), 31 state_(NOT_RUNNING),
32 type_(syncer::UNSPECIFIED) {} 32 type_(syncer::UNSPECIFIED) {}
33 33
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 ModelTypeToHistogramInt(type()), 386 ModelTypeToHistogramInt(type()),
387 syncer::MODEL_TYPE_COUNT); 387 syncer::MODEL_TYPE_COUNT);
388 #define PER_DATA_TYPE_MACRO(type_str) \ 388 #define PER_DATA_TYPE_MACRO(type_str) \
389 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \ 389 UMA_HISTOGRAM_ENUMERATION("Sync." type_str "ConfigureFailure", result, \
390 MAX_CONFIGURE_RESULT); 390 MAX_CONFIGURE_RESULT);
391 SYNC_DATA_TYPE_HISTOGRAM(type()); 391 SYNC_DATA_TYPE_HISTOGRAM(type());
392 #undef PER_DATA_TYPE_MACRO 392 #undef PER_DATA_TYPE_MACRO
393 } 393 }
394 394
395 } // namespace sync_driver 395 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync_driver/system_encryptor.h ('k') | components/sync_driver/ui_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698