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

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

Issue 9545006: This adds some GData private API to the file manager (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review changes and rework Created 8 years, 10 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698