Commit 0ddadd51 authored by serya@chromium.org's avatar serya@chromium.org

Fix exception reading image metadata from gdata.

BUG=None
TEST=Manual test.


Review URL: http://codereview.chromium.org/9540006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124651 0039d316-1c4b-4281-b951-d872f2087c98
parent 10b9687c
...@@ -2720,6 +2720,14 @@ FileManager.prototype = { ...@@ -2720,6 +2720,14 @@ FileManager.prototype = {
callback(iconType, FileType.getPreviewArt(iconType)); callback(iconType, FileType.getPreviewArt(iconType));
} }
if (DirectoryModel.getRootType(entry.fullPath) ==
DirectoryModel.RootType.GDATA) {
// TODO(serya): retrieve thumbnail URL with getGDataFileProperties
// (see http://crosbug/27030)
returnStockIcon();
return;
}
this.metadataProvider_.fetch(entry.toURL(), function (metadata) { this.metadataProvider_.fetch(entry.toURL(), function (metadata) {
if (metadata.thumbnailURL) { if (metadata.thumbnailURL) {
callback(iconType, metadata.thumbnailURL, metadata.thumbnailTransform); callback(iconType, metadata.thumbnailURL, metadata.thumbnailTransform);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment