| OLD | NEW |
| 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/shared_change_processor.h" | 5 #include "components/sync/driver/shared_change_processor.h" |
| 6 | 6 |
| 7 #include <memory> | |
| 8 #include <utility> | 7 #include <utility> |
| 9 | 8 |
| 10 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "components/sync/api/data_type_error_handler.h" | |
| 12 #include "components/sync/api/sync_change.h" | 10 #include "components/sync/api/sync_change.h" |
| 13 #include "components/sync/api/syncable_service.h" | 11 #include "components/sync/api/syncable_service.h" |
| 14 #include "components/sync/base/data_type_histogram.h" | 12 #include "components/sync/base/data_type_histogram.h" |
| 15 #include "components/sync/driver/generic_change_processor.h" | 13 #include "components/sync/driver/generic_change_processor.h" |
| 16 #include "components/sync/driver/generic_change_processor_factory.h" | 14 #include "components/sync/driver/generic_change_processor_factory.h" |
| 17 #include "components/sync/driver/shared_change_processor_ref.h" | 15 #include "components/sync/driver/shared_change_processor_ref.h" |
| 18 #include "components/sync/driver/sync_client.h" | 16 #include "components/sync/driver/sync_client.h" |
| 19 | 17 |
| 20 using base::AutoLock; | 18 using base::AutoLock; |
| 21 | 19 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 #undef PER_DATA_TYPE_MACRO | 325 #undef PER_DATA_TYPE_MACRO |
| 328 } | 326 } |
| 329 | 327 |
| 330 void SharedChangeProcessor::StopLocalService() { | 328 void SharedChangeProcessor::StopLocalService() { |
| 331 if (local_service_.get()) | 329 if (local_service_.get()) |
| 332 local_service_->StopSyncing(type_); | 330 local_service_->StopSyncing(type_); |
| 333 local_service_.reset(); | 331 local_service_.reset(); |
| 334 } | 332 } |
| 335 | 333 |
| 336 } // namespace sync_driver | 334 } // namespace sync_driver |
| OLD | NEW |