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

Side by Side Diff: components/sync/engine_impl/non_blocking_type_commit_contribution.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/engine_impl/non_blocking_type_commit_contribution.h" 5 #include "components/sync/engine_impl/non_blocking_type_commit_contribution.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "components/sync/core/non_blocking_sync_common.h" 10 #include "components/sync/engine/non_blocking_sync_common.h"
11 #include "components/sync/engine_impl/model_type_worker.h" 11 #include "components/sync/engine_impl/model_type_worker.h"
12 #include "components/sync/protocol/proto_value_conversions.h" 12 #include "components/sync/protocol/proto_value_conversions.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 NonBlockingTypeCommitContribution::NonBlockingTypeCommitContribution( 16 NonBlockingTypeCommitContribution::NonBlockingTypeCommitContribution(
17 const sync_pb::DataTypeContext& context, 17 const sync_pb::DataTypeContext& context,
18 const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities, 18 const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities,
19 ModelTypeWorker* worker) 19 ModelTypeWorker* worker)
20 : worker_(worker), 20 : worker_(worker),
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // We could inform our parent NonBlockingCommitContributor that a commit is 108 // We could inform our parent NonBlockingCommitContributor that a commit is
109 // no longer in progress. The current implementation doesn't really care 109 // no longer in progress. The current implementation doesn't really care
110 // either way, so we don't bother sending the signal. 110 // either way, so we don't bother sending the signal.
111 } 111 }
112 112
113 size_t NonBlockingTypeCommitContribution::GetNumEntries() const { 113 size_t NonBlockingTypeCommitContribution::GetNumEntries() const {
114 return entities_.size(); 114 return entities_.size();
115 } 115 }
116 116
117 } // namespace syncer 117 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/model_type_worker_unittest.cc ('k') | components/sync/engine_impl/sync_encryption_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698