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

Side by Side Diff: components/sync/engine_impl/directory_commit_contribution.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. 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/directory_commit_contribution.h" 5 #include "components/sync/engine_impl/directory_commit_contribution.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <set> 11 #include <set>
12 12
13 #include "components/sync/engine/cycle/commit_counters.h" 13 #include "components/sync/engine/cycle/commit_counters.h"
14 #include "components/sync/engine_impl/commit_util.h" 14 #include "components/sync/engine_impl/commit_util.h"
15 #include "components/sync/engine_impl/get_commit_ids.h" 15 #include "components/sync/engine_impl/get_commit_ids.h"
16 #include "components/sync/engine_impl/syncer_util.h" 16 #include "components/sync/engine_impl/syncer_util.h"
17 #include "components/sync/syncable/model_neutral_mutable_entry.h" 17 #include "components/sync/syncable/model_neutral_mutable_entry.h"
18 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h" 18 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h"
19 19
20 namespace syncer { 20 namespace syncer {
21 21
22 using syncable::GET_BY_HANDLE; 22 using syncer::syncable::GET_BY_HANDLE;
23 using syncable::SYNCER; 23 using syncer::syncable::SYNCER;
24 24
25 DirectoryCommitContribution::~DirectoryCommitContribution() { 25 DirectoryCommitContribution::~DirectoryCommitContribution() {
26 DCHECK(!syncing_bits_set_); 26 DCHECK(!syncing_bits_set_);
27 } 27 }
28 28
29 // static. 29 // static.
30 std::unique_ptr<DirectoryCommitContribution> DirectoryCommitContribution::Build( 30 std::unique_ptr<DirectoryCommitContribution> DirectoryCommitContribution::Build(
31 syncable::Directory* dir, 31 syncable::Directory* dir,
32 ModelType type, 32 ModelType type,
33 size_t max_entries, 33 size_t max_entries,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // complete but the Cleanup method is called anyways. It appears these are 186 // complete but the Cleanup method is called anyways. It appears these are
187 // unset on the assumption that the sync cycle must have finished properly, 187 // unset on the assumption that the sync cycle must have finished properly,
188 // although that's actually up to the commit response handling logic. 188 // although that's actually up to the commit response handling logic.
189 entry.PutDirtySync(false); 189 entry.PutDirtySync(false);
190 entry.PutSyncing(false); 190 entry.PutSyncing(false);
191 } 191 }
192 syncing_bits_set_ = false; 192 syncing_bits_set_ = false;
193 } 193 }
194 194
195 } // namespace syncer 195 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698