| Index: sync/syncable/mutable_entry.cc
|
| diff --git a/sync/syncable/mutable_entry.cc b/sync/syncable/mutable_entry.cc
|
| index 64b5f7f1152a16329399cb036bb0eb20904ec666..95c021df30c894d60f573825ecacdb8367602afa 100644
|
| --- a/sync/syncable/mutable_entry.cc
|
| +++ b/sync/syncable/mutable_entry.cc
|
| @@ -408,5 +408,15 @@ bool MutableEntry::Put(BitTemp field, bool value) {
|
| 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;
|
| +}
|
| +
|
| } // namespace syncable
|
| } // namespace syncer
|
|
|