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

Side by Side Diff: components/sync/model_impl/shared_model_type_processor.cc

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. 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/model_impl/shared_model_type_processor.h" 5 #include "components/sync/model_impl/shared_model_type_processor.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "components/sync/core/activation_context.h" 15 #include "components/sync/engine/activation_context.h"
16 #include "components/sync/core/model_type_processor_proxy.h"
17 #include "components/sync/engine/commit_queue.h" 16 #include "components/sync/engine/commit_queue.h"
17 #include "components/sync/engine/model_type_processor_proxy.h"
18 #include "components/sync/model_impl/processor_entity_tracker.h" 18 #include "components/sync/model_impl/processor_entity_tracker.h"
19 #include "components/sync/syncable/syncable_util.h" 19 #include "components/sync/syncable/syncable_util.h"
20 20
21 namespace syncer { 21 namespace syncer {
22 22
23 SharedModelTypeProcessor::SharedModelTypeProcessor(ModelType type, 23 SharedModelTypeProcessor::SharedModelTypeProcessor(ModelType type,
24 ModelTypeService* service) 24 ModelTypeService* service)
25 : type_(type), 25 : type_(type),
26 is_metadata_loaded_(false), 26 is_metadata_loaded_(false),
27 is_initial_pending_data_loaded_(false), 27 is_initial_pending_data_loaded_(false),
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 } 638 }
639 639
640 ProcessorEntityTracker* SharedModelTypeProcessor::CreateEntity( 640 ProcessorEntityTracker* SharedModelTypeProcessor::CreateEntity(
641 const EntityData& data) { 641 const EntityData& data) {
642 // Verify the tag hash matches, may be relaxed in the future. 642 // Verify the tag hash matches, may be relaxed in the future.
643 DCHECK_EQ(data.client_tag_hash, GetHashForTag(service_->GetClientTag(data))); 643 DCHECK_EQ(data.client_tag_hash, GetHashForTag(service_->GetClientTag(data)));
644 return CreateEntity(service_->GetStorageKey(data), data); 644 return CreateEntity(service_->GetStorageKey(data), data);
645 } 645 }
646 646
647 } // namespace syncer 647 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698