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

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

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 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
OLDNEW
« no previous file with comments | « components/sync/driver/ui_model_type_controller.h ('k') | components/sync/driver/ui_model_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698