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

Side by Side Diff: components/sync_driver/ui_model_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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698