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

Side by Side Diff: components/sync_driver/non_blocking_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/non_blocking_data_type_controller.h" 5 #include "components/sync_driver/non_blocking_data_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/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "components/sync/api/model_type_change_processor.h"
14 #include "components/sync/api/model_type_service.h"
15 #include "components/sync/api/sync_error.h"
16 #include "components/sync/api/sync_merge_result.h"
17 #include "components/sync/base/data_type_histogram.h"
18 #include "components/sync/core/activation_context.h"
13 #include "components/sync_driver/backend_data_type_configurer.h" 19 #include "components/sync_driver/backend_data_type_configurer.h"
14 #include "components/sync_driver/sync_client.h" 20 #include "components/sync_driver/sync_client.h"
15 #include "sync/api/model_type_change_processor.h"
16 #include "sync/api/model_type_service.h"
17 #include "sync/api/sync_error.h"
18 #include "sync/api/sync_merge_result.h"
19 #include "sync/internal_api/public/activation_context.h"
20 #include "sync/util/data_type_histogram.h"
21 21
22 namespace sync_driver_v2 { 22 namespace sync_driver_v2 {
23 23
24 NonBlockingDataTypeController::NonBlockingDataTypeController( 24 NonBlockingDataTypeController::NonBlockingDataTypeController(
25 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, 25 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
26 const base::Closure& error_callback, 26 const base::Closure& error_callback,
27 syncer::ModelType model_type, 27 syncer::ModelType model_type,
28 sync_driver::SyncClient* sync_client) 28 sync_driver::SyncClient* sync_client)
29 : sync_driver::DataTypeController(ui_thread, error_callback), 29 : sync_driver::DataTypeController(ui_thread, error_callback),
30 model_type_(model_type), 30 model_type_(model_type),
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeRunFailures", 256 UMA_HISTOGRAM_ENUMERATION("Sync.DataTypeRunFailures",
257 ModelTypeToHistogramInt(type()), 257 ModelTypeToHistogramInt(type()),
258 syncer::MODEL_TYPE_COUNT); 258 syncer::MODEL_TYPE_COUNT);
259 } 259 }
260 260
261 syncer::ModelType NonBlockingDataTypeController::type() const { 261 syncer::ModelType NonBlockingDataTypeController::type() const {
262 return model_type_; 262 return model_type_;
263 } 263 }
264 264
265 } // namespace sync_driver_v2 265 } // namespace sync_driver_v2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698