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

Unified Diff: chrome/browser/chromeos/gdata/gdata_wapi_parser.cc

Issue 10834304: Handle trashed file properly (Drive V2 API) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « 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/gdata/gdata_wapi_parser.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc b/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
index f0df48356ec06dc3b313bee57d1ffa0905f5eabe..3fc58b4bf38807f9a9a8dfa9abe11aa20948490c 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_parser.cc
@@ -825,7 +825,7 @@ DocumentEntry* DocumentEntry::CreateFromFileResource(const FileResource& file) {
entry->file_md5_ = file.md5_checksum();
entry->file_size_ = file.file_size();
- entry->deleted_ = false; // later filled by CreateFromChangeResource.
+ entry->deleted_ = file.labels().is_trashed();
hashimoto 2012/08/14 10:21:52 Could you add a brief comment about: 1. What is th
kochi 2012/08/14 10:32:11 Updated comments. And I noticed that |removed_| fi
entry->removed_ = false; // later filled by CreateFromChangeResource.
// FeedEntry
@@ -875,7 +875,6 @@ DocumentEntry*
DocumentEntry::CreateFromChangeResource(const ChangeResource& change) {
DocumentEntry* entry = CreateFromFileResource(change.file());
- entry->deleted_ = change.is_deleted();
entry->removed_ = change.is_deleted();
return entry;
« 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