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

Side by Side Diff: components/sync_driver/non_ui_data_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/non_ui_data_type_controller.h" 5 #include "components/sync_driver/non_ui_data_type_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "components/sync/api/sync_error.h"
11 #include "components/sync/api/sync_merge_result.h"
12 #include "components/sync/api/syncable_service.h"
13 #include "components/sync/base/data_type_histogram.h"
14 #include "components/sync/base/model_type.h"
10 #include "components/sync_driver/generic_change_processor_factory.h" 15 #include "components/sync_driver/generic_change_processor_factory.h"
11 #include "components/sync_driver/shared_change_processor_ref.h" 16 #include "components/sync_driver/shared_change_processor_ref.h"
12 #include "components/sync_driver/sync_api_component_factory.h" 17 #include "components/sync_driver/sync_api_component_factory.h"
13 #include "components/sync_driver/sync_client.h" 18 #include "components/sync_driver/sync_client.h"
14 #include "components/sync_driver/sync_service.h" 19 #include "components/sync_driver/sync_service.h"
15 #include "sync/api/sync_error.h"
16 #include "sync/api/sync_merge_result.h"
17 #include "sync/api/syncable_service.h"
18 #include "sync/internal_api/public/base/model_type.h"
19 #include "sync/util/data_type_histogram.h"
20 20
21 namespace sync_driver { 21 namespace sync_driver {
22 22
23 SharedChangeProcessor* 23 SharedChangeProcessor*
24 NonUIDataTypeController::CreateSharedChangeProcessor() { 24 NonUIDataTypeController::CreateSharedChangeProcessor() {
25 return new SharedChangeProcessor(); 25 return new SharedChangeProcessor();
26 } 26 }
27 27
28 NonUIDataTypeController::NonUIDataTypeController( 28 NonUIDataTypeController::NonUIDataTypeController(
29 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, 29 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 415 }
416 416
417 void NonUIDataTypeController::StopLocalService() { 417 void NonUIDataTypeController::StopLocalService() {
418 DCHECK(!ui_thread_->BelongsToCurrentThread()); 418 DCHECK(!ui_thread_->BelongsToCurrentThread());
419 if (local_service_.get()) 419 if (local_service_.get())
420 local_service_->StopSyncing(type()); 420 local_service_->StopSyncing(type());
421 local_service_.reset(); 421 local_service_.reset();
422 } 422 }
423 423
424 } // namespace sync_driver 424 } // namespace sync_driver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698