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

Side by Side Diff: components/sync/driver/non_ui_data_type_controller.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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_ui_data_type_controller.h" 5 #include "components/sync/driver/non_ui_data_type_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "components/sync/api/data_type_error_handler_impl.h"
10 #include "components/sync/api/sync_error.h"
11 #include "components/sync/api/sync_merge_result.h"
12 #include "components/sync/api/syncable_service.h"
13 #include "components/sync/base/bind_to_task_runner.h" 9 #include "components/sync/base/bind_to_task_runner.h"
14 #include "components/sync/base/data_type_histogram.h" 10 #include "components/sync/base/data_type_histogram.h"
15 #include "components/sync/base/model_type.h" 11 #include "components/sync/base/model_type.h"
16 #include "components/sync/driver/generic_change_processor_factory.h" 12 #include "components/sync/driver/generic_change_processor_factory.h"
17 #include "components/sync/driver/sync_api_component_factory.h" 13 #include "components/sync/driver/sync_api_component_factory.h"
18 #include "components/sync/driver/sync_client.h" 14 #include "components/sync/driver/sync_client.h"
19 #include "components/sync/driver/sync_service.h" 15 #include "components/sync/driver/sync_service.h"
16 #include "components/sync/model/data_type_error_handler_impl.h"
17 #include "components/sync/model/sync_error.h"
18 #include "components/sync/model/sync_merge_result.h"
19 #include "components/sync/model/syncable_service.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 22
23 SharedChangeProcessor* NonUIDataTypeController::CreateSharedChangeProcessor() { 23 SharedChangeProcessor* NonUIDataTypeController::CreateSharedChangeProcessor() {
24 return new SharedChangeProcessor(type()); 24 return new SharedChangeProcessor(type());
25 } 25 }
26 26
27 NonUIDataTypeController::NonUIDataTypeController( 27 NonUIDataTypeController::NonUIDataTypeController(
28 ModelType type, 28 ModelType type,
29 const base::Closure& dump_stack, 29 const base::Closure& dump_stack,
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 std::unique_ptr<DataTypeErrorHandler> 234 std::unique_ptr<DataTypeErrorHandler>
235 NonUIDataTypeController::CreateErrorHandler() { 235 NonUIDataTypeController::CreateErrorHandler() {
236 DCHECK(CalledOnValidThread()); 236 DCHECK(CalledOnValidThread());
237 return base::MakeUnique<DataTypeErrorHandlerImpl>( 237 return base::MakeUnique<DataTypeErrorHandlerImpl>(
238 base::ThreadTaskRunnerHandle::Get(), dump_stack_, 238 base::ThreadTaskRunnerHandle::Get(), dump_stack_,
239 base::Bind(&NonUIDataTypeController::DisableImpl, base::AsWeakPtr(this))); 239 base::Bind(&NonUIDataTypeController::DisableImpl, base::AsWeakPtr(this)));
240 } 240 }
241 241
242 } // namespace syncer 242 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/model_type_controller_unittest.cc ('k') | components/sync/driver/non_ui_data_type_controller_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698