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

Unified Diff: chrome/browser/chromeos/drive/sync/entry_update_performer.cc

Issue 99893007: drive: Retry update when the entry was trashed during update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/sync/entry_update_performer.cc
diff --git a/chrome/browser/chromeos/drive/sync/entry_update_performer.cc b/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
index ec25ef6131048fb4f8c0f071bab59a1dd28b654d..bf7b279fe3aaee0e3e773473b9b15536f8804c8f 100644
--- a/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
+++ b/chrome/browser/chromeos/drive/sync/entry_update_performer.cc
@@ -178,7 +178,8 @@ void EntryUpdatePerformer::UpdateEntryAfterFinish(
return;
}
- if (entry->metadata_edit_state() == ResourceEntry::DIRTY) {
+ if (entry->metadata_edit_state() == ResourceEntry::DIRTY ||
+ entry->parent_local_id() == util::kDriveTrashDirLocalId) {
// The entry was edited during the update. Update again.
UpdateEntry(entry->local_id(), callback);
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698