Lines Matching refs:trans
51 void ConflictResolver::OverwriteServerChanges(WriteTransaction* trans,
64 ConflictResolver::ProcessSimpleConflict(WriteTransaction* trans,
66 MutableEntry entry(trans, syncable::GET_BY_ID, id);
117 OverwriteServerChanges(trans, &entry);
124 trans->directory()->GetChildHandles(trans,
141 OverwriteServerChanges(trans, &entry);
148 SyncerUtil::SplitServerInformationIntoNewEntry(trans, &entry);
150 MutableEntry server_update(trans, syncable::GET_BY_ID, id);
175 bool AttemptToFixCircularConflict(WriteTransaction* trans,
179 MutableEntry entryi(trans, syncable::GET_BY_ID, *i);
189 Entry parent(trans, syncable::GET_BY_ID, parentid);
197 Entry parent(trans, syncable::GET_BY_ID, parentid);
215 bool AttemptToFixUnsyncedEntryInDeletedServerTree(WriteTransaction* trans,
221 MutableEntry parent(trans, syncable::GET_BY_ID, parentid);
235 Entry parent(trans, syncable::GET_BY_ID, id);
244 MutableEntry parent(trans, syncable::GET_BY_ID, id);
249 SyncerUtil::ChangeEntryIDAndUpdateChildren(trans, &parent,
250 trans->directory()->NextId());
260 bool AttemptToFixUpdateEntryInDeletedLocalTree(WriteTransaction* trans,
267 MutableEntry parent(trans, syncable::GET_BY_ID, parent_id);
284 Entry parent(trans, syncable::GET_BY_ID, id);
322 MutableEntry entry(trans, syncable::GET_BY_ID, id);
329 parent_id = trans->root_id();
339 bool AttemptToFixRemovedDirectoriesWithContent(WriteTransaction* trans,
343 Entry entry(trans, syncable::GET_BY_ID, *i);
344 if (AttemptToFixUnsyncedEntryInDeletedServerTree(trans,
348 if (AttemptToFixUpdateEntryInDeletedLocalTree(trans, conflict_set, entry))
357 bool ConflictResolver::ProcessConflictSet(WriteTransaction* trans,
378 if (AttemptToFixCircularConflict(trans, conflict_set))
381 if (AttemptToFixRemovedDirectoriesWithContent(trans, conflict_set))
388 BaseTransaction* trans,
405 Entry e(trans, syncable::GET_BY_ID, *i);
422 WriteTransaction trans(dir, syncable::SYNCER, __FILE__, __LINE__);
436 switch (ProcessSimpleConflict(&trans, id)) {
440 LogAndSignalIfConflictStuck(&trans, conflict_count,
467 WriteTransaction trans(dir, syncable::SYNCER, __FILE__, __LINE__);
491 if (ProcessConflictSet(&trans, conflict_set, conflict_count)) {
494 LogAndSignalIfConflictStuck(&trans, conflict_count,