OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_model_type_controller.h" | 5 #include "components/sync/driver/ui_model_type_controller.h" |
6 | 6 |
7 #include "components/sync/api/model_type_service.h" | 7 #include "components/sync/api/model_type_service.h" |
8 #include "components/sync/base/model_type.h" | 8 #include "components/sync/base/model_type.h" |
9 #include "components/sync/core/activation_context.h" | 9 #include "components/sync/core/activation_context.h" |
10 #include "components/sync/driver/sync_client.h" | 10 #include "components/sync/driver/sync_client.h" |
11 | 11 |
12 namespace syncer { | 12 namespace sync_driver_v2 { |
13 | 13 |
14 UIModelTypeController::UIModelTypeController(ModelType type, | 14 using sync_driver::SyncClient; |
| 15 |
| 16 UIModelTypeController::UIModelTypeController(syncer::ModelType type, |
15 const base::Closure& dump_stack, | 17 const base::Closure& dump_stack, |
16 SyncClient* sync_client) | 18 SyncClient* sync_client) |
17 : NonBlockingDataTypeController(type, dump_stack, sync_client) {} | 19 : NonBlockingDataTypeController(type, dump_stack, sync_client) {} |
18 | 20 |
19 UIModelTypeController::~UIModelTypeController() {} | 21 UIModelTypeController::~UIModelTypeController() {} |
20 | 22 |
21 bool UIModelTypeController::RunOnModelThread( | 23 bool UIModelTypeController::RunOnModelThread( |
22 const tracked_objects::Location& from_here, | 24 const tracked_objects::Location& from_here, |
23 const base::Closure& task) { | 25 const base::Closure& task) { |
24 DCHECK(CalledOnValidThread()); | 26 DCHECK(CalledOnValidThread()); |
25 task.Run(); | 27 task.Run(); |
26 return true; | 28 return true; |
27 } | 29 } |
28 | 30 |
29 } // namespace syncer | 31 } // namespace sync_driver_v2 |
OLD | NEW |