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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "sync/engine/conflict_util.h" 5 #include "components/sync/engine_impl/conflict_util.h"
6 6
7 #include "sync/syncable/mutable_entry.h" 7 #include "components/sync/syncable/mutable_entry.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 10
11 using syncable::MutableEntry; 11 using syncable::MutableEntry;
12 12
13 namespace conflict_util { 13 namespace conflict_util {
14 14
15 // Allow the server's changes to take precedence. 15 // Allow the server's changes to take precedence.
16 // This will take effect during the next ApplyUpdates step. 16 // This will take effect during the next ApplyUpdates step.
17 void IgnoreLocalChanges(MutableEntry* entry) { 17 void IgnoreLocalChanges(MutableEntry* entry) {
(...skipping 22 matching lines...) Expand all
40 // required (and hence there will be many encryption conflicts). 40 // required (and hence there will be many encryption conflicts).
41 DCHECK(entry->GetIsUnsynced()); 41 DCHECK(entry->GetIsUnsynced());
42 DCHECK(entry->GetIsUnappliedUpdate()); 42 DCHECK(entry->GetIsUnappliedUpdate());
43 entry->PutBaseVersion(entry->GetServerVersion()); 43 entry->PutBaseVersion(entry->GetServerVersion());
44 entry->PutIsUnappliedUpdate(false); 44 entry->PutIsUnappliedUpdate(false);
45 entry->PutIsUnsynced(false); 45 entry->PutIsUnsynced(false);
46 } 46 }
47 47
48 } // namespace conflict_util 48 } // namespace conflict_util
49 } // namespace syncer 49 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/conflict_util.h ('k') | components/sync/engine_impl/directory_commit_contribution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698