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

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

Issue 2419793005: [Sync] Fix test support targets + duplicate namespaces. (Closed)
Patch Set: Fix ChromeOS. 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 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 <utility> 7 #include <utility>
8 8
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "components/sync/base/data_type_histogram.h" 10 #include "components/sync/base/data_type_histogram.h"
11 #include "components/sync/driver/generic_change_processor.h" 11 #include "components/sync/driver/generic_change_processor.h"
12 #include "components/sync/driver/generic_change_processor_factory.h" 12 #include "components/sync/driver/generic_change_processor_factory.h"
13 #include "components/sync/driver/shared_change_processor_ref.h" 13 #include "components/sync/driver/shared_change_processor_ref.h"
14 #include "components/sync/driver/sync_client.h" 14 #include "components/sync/driver/sync_client.h"
15 #include "components/sync/model/sync_change.h" 15 #include "components/sync/model/sync_change.h"
16 #include "components/sync/model/syncable_service.h" 16 #include "components/sync/model/syncable_service.h"
17 17
18 using base::AutoLock; 18 using base::AutoLock;
19 19
20 namespace syncer { 20 namespace syncer {
21
21 class AttachmentService; 22 class AttachmentService;
22 } // namespace syncer
23
24 namespace syncer {
25 23
26 SharedChangeProcessor::SharedChangeProcessor(ModelType type) 24 SharedChangeProcessor::SharedChangeProcessor(ModelType type)
27 : disconnected_(false), 25 : disconnected_(false),
28 type_(type), 26 type_(type),
29 frontend_task_runner_(base::ThreadTaskRunnerHandle::Get()), 27 frontend_task_runner_(base::ThreadTaskRunnerHandle::Get()),
30 generic_change_processor_(NULL) { 28 generic_change_processor_(NULL) {
31 DCHECK_NE(type_, UNSPECIFIED); 29 DCHECK_NE(type_, UNSPECIFIED);
32 } 30 }
33 31
34 SharedChangeProcessor::~SharedChangeProcessor() { 32 SharedChangeProcessor::~SharedChangeProcessor() {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 #undef PER_DATA_TYPE_MACRO 317 #undef PER_DATA_TYPE_MACRO
320 } 318 }
321 319
322 void SharedChangeProcessor::StopLocalService() { 320 void SharedChangeProcessor::StopLocalService() {
323 if (local_service_.get()) 321 if (local_service_.get())
324 local_service_->StopSyncing(type_); 322 local_service_->StopSyncing(type_);
325 local_service_.reset(); 323 local_service_.reset();
326 } 324 }
327 325
328 } // namespace syncer 326 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/device_info/device_info_service.h ('k') | components/sync/engine_impl/model_type_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698