Index: chrome/browser/chromeos/gdata/gdata_file_system.cc |
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc |
index ac0ff357b4452e7920253da3aaf3d80a376020bf..17eb195e9cb1b54f4e8e65537d26db7de96c9633 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc |
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc |
@@ -188,13 +188,23 @@ GDataFileBase* GDataFile::FromDocumentEntry(GDataDirectory* parent, |
file->file_info_.last_modified = doc->updated_time(); |
file->file_info_.last_accessed = doc->updated_time(); |
file->file_info_.creation_time = doc->published_time(); |
+ |
+ const Link* thumbnail_link = doc->GetLinkByType(Link::THUMBNAIL); |
+ if (thumbnail_link) |
+ file->thumbnail_url_ = thumbnail_link->href(); |
+ |
+ // TODO(gspencer): Add support for reading pinned state from the cache, |
+ // when the cache code is done. |
+ |
return file; |
} |
// GDataFile class implementation. |
GDataFile::GDataFile(GDataDirectory* parent) |
- : GDataFileBase(parent), kind_(gdata::DocumentEntry::UNKNOWN) { |
+ : GDataFileBase(parent), |
+ kind_(gdata::DocumentEntry::UNKNOWN), |
+ pinned_state_(PINNED_STATE_NONE) { |
DCHECK(parent); |
} |