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

Unified Diff: chrome/browser/chromeos/drive/sync_client.cc

Issue 98513003: drive: Support offline move/rename (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
Index: chrome/browser/chromeos/drive/sync_client.cc
diff --git a/chrome/browser/chromeos/drive/sync_client.cc b/chrome/browser/chromeos/drive/sync_client.cc
index 38df58f18eb0082e2bf4587e29fd527f44ce73c8..5bde87a0c8ab7463e7847dc83ede915e092edb2a 100644
--- a/chrome/browser/chromeos/drive/sync_client.cc
+++ b/chrome/browser/chromeos/drive/sync_client.cc
@@ -63,6 +63,15 @@ void CollectBacklog(ResourceMetadata* metadata,
continue;
}
+ switch (entry.metadata_edit_state()) {
+ case ResourceEntry::CLEAN:
+ break;
+ case ResourceEntry::SYNCING:
+ case ResourceEntry::DIRTY:
+ to_update->push_back(local_id);
+ break;
+ }
+
FileCacheEntry cache_entry;
if (it->GetCacheEntry(&cache_entry)) {
if (cache_entry.is_pinned() && !cache_entry.is_present())
« no previous file with comments | « chrome/browser/chromeos/drive/sync/entry_update_performer.cc ('k') | chrome/browser/chromeos/drive/sync_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698