| 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" |
| 8 #include "components/sync/base/model_type.h" |
| 9 #include "components/sync/core/activation_context.h" |
| 7 #include "components/sync_driver/sync_client.h" | 10 #include "components/sync_driver/sync_client.h" |
| 8 #include "sync/api/model_type_service.h" | |
| 9 #include "sync/internal_api/public/activation_context.h" | |
| 10 #include "sync/internal_api/public/base/model_type.h" | |
| 11 | 11 |
| 12 namespace sync_driver_v2 { | 12 namespace sync_driver_v2 { |
| 13 | 13 |
| 14 using sync_driver::SyncClient; | 14 using sync_driver::SyncClient; |
| 15 | 15 |
| 16 UIModelTypeController::UIModelTypeController( | 16 UIModelTypeController::UIModelTypeController( |
| 17 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, | 17 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, |
| 18 const base::Closure& error_callback, | 18 const base::Closure& error_callback, |
| 19 syncer::ModelType model_type, | 19 syncer::ModelType model_type, |
| 20 SyncClient* sync_client) | 20 SyncClient* sync_client) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 void UIModelTypeController::RunOnUIThread( | 35 void UIModelTypeController::RunOnUIThread( |
| 36 const tracked_objects::Location& from_here, | 36 const tracked_objects::Location& from_here, |
| 37 const base::Closure& task) { | 37 const base::Closure& task) { |
| 38 DCHECK(BelongsToUIThread()); | 38 DCHECK(BelongsToUIThread()); |
| 39 task.Run(); | 39 task.Run(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace sync_driver_v2 | 42 } // namespace sync_driver_v2 |
| OLD | NEW |