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 sync_driver_v2 { | 12 namespace syncer { |
13 | 13 |
14 using sync_driver::SyncClient; | 14 UIModelTypeController::UIModelTypeController(ModelType type, |
15 | |
16 UIModelTypeController::UIModelTypeController(syncer::ModelType type, | |
17 const base::Closure& dump_stack, | 15 const base::Closure& dump_stack, |
18 SyncClient* sync_client) | 16 SyncClient* sync_client) |
19 : NonBlockingDataTypeController(type, dump_stack, sync_client) {} | 17 : NonBlockingDataTypeController(type, dump_stack, sync_client) {} |
20 | 18 |
21 UIModelTypeController::~UIModelTypeController() {} | 19 UIModelTypeController::~UIModelTypeController() {} |
22 | 20 |
23 bool UIModelTypeController::RunOnModelThread( | 21 bool UIModelTypeController::RunOnModelThread( |
24 const tracked_objects::Location& from_here, | 22 const tracked_objects::Location& from_here, |
25 const base::Closure& task) { | 23 const base::Closure& task) { |
26 DCHECK(CalledOnValidThread()); | 24 DCHECK(CalledOnValidThread()); |
27 task.Run(); | 25 task.Run(); |
28 return true; | 26 return true; |
29 } | 27 } |
30 | 28 |
31 } // namespace sync_driver_v2 | 29 } // namespace syncer |
OLD | NEW |