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

Unified Diff: sync/syncable/syncable_util.cc

Issue 10696083: sync: Move MarkForSyncing to mutable_entry.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/syncable/mutable_entry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_util.cc
diff --git a/sync/syncable/syncable_util.cc b/sync/syncable/syncable_util.cc
index b4829cf8786fdcaf4cce7f3ab300252827459ebe..1bfe6ff960bd98f6c1b97118da692c243d276c17 100644
--- a/sync/syncable/syncable_util.cc
+++ b/sync/syncable/syncable_util.cc
@@ -44,16 +44,6 @@ bool IsLegalNewParent(BaseTransaction* trans, const Id& entry_id,
return true;
}
-// This function sets only the flags needed to get this entry to sync.
-bool MarkForSyncing(MutableEntry* e) {
- DCHECK_NE(static_cast<MutableEntry*>(NULL), e);
- DCHECK(!e->IsRoot()) << "We shouldn't mark a permanent object for syncing.";
- if (!(e->Put(IS_UNSYNCED, true)))
- return false;
- e->Put(SYNCING, false);
- return true;
-}
-
void ChangeEntryIDAndUpdateChildren(
WriteTransaction* trans,
MutableEntry* entry,
« no previous file with comments | « sync/syncable/mutable_entry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698