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

Issue 574293002: Files.app: Show thumbnail of non-image file even when the file cache is present (Closed)

Created:
6 years, 3 months ago by yoshiki
Modified:
6 years, 3 months ago
Reviewers:
mtomasz, hirono
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Files.app: Show thumbnail of non-image file even when the file cache is present Previously, thumbnails of offline-available non-image files were not shown. This was because we tried to show self-generated thumbnails when the file cache was present. But we can't generate thumbnails of non-image so the thumbnails of video files were not shown. With this patch, if thumbnail can't be generated, the thumbnail from the external provider shows instead. BUG=415048 TEST=manual tested Committed: https://crrev.com/19d31bfb5de5acba66036f5acb2a5a140d1d378d Cr-Commit-Position: refs/heads/master@{#295893}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Fix null-pointer exception #

Total comments: 6

Patch Set 4 : Addressed the comment #

Total comments: 2

Patch Set 5 : Add a comment in thumbnail loader #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -13 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/thumbnail_loader.js View 1 2 3 4 5 1 chunk +9 lines, -3 lines 0 comments Download
M ui/file_manager/video_player/js/video_player.js View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
yoshiki
@mtomasz: PTAL. Thanks.
6 years, 3 months ago (2014-09-17 09:08:41 UTC) #2
yoshiki
Updated the title.
6 years, 3 months ago (2014-09-17 09:11:15 UTC) #3
mtomasz
+hirono@ for the stale thumbnail related code. https://codereview.chromium.org/574293002/diff/40001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/574293002/diff/40001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode80 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:80: properties->thumbnail_url.reset( AFAIR, ...
6 years, 3 months ago (2014-09-17 09:29:48 UTC) #5
yoshiki
https://codereview.chromium.org/574293002/diff/40001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/574293002/diff/40001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode80 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:80: properties->thumbnail_url.reset( On 2014/09/17 09:29:48, mtomasz wrote: > AFAIR, the ...
6 years, 3 months ago (2014-09-17 09:57:10 UTC) #6
hirono
https://codereview.chromium.org/574293002/diff/60001/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js File ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/574293002/diff/60001/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js#newcode887 ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js:887: // generate it by next providers. How about PDF ...
6 years, 3 months ago (2014-09-18 03:22:18 UTC) #7
hirono
Sorry I missed the change in thumbnail loader. lgtm!
6 years, 3 months ago (2014-09-18 03:26:31 UTC) #8
mtomasz
lgtm https://codereview.chromium.org/574293002/diff/60001/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js File ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/574293002/diff/60001/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js#newcode889 ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js:889: } else if ('thumbnailUrl' in data) { This ...
6 years, 3 months ago (2014-09-18 03:44:10 UTC) #9
yoshiki
On 2014/09/18 03:44:10, mtomasz wrote: > lgtm > > https://codereview.chromium.org/574293002/diff/60001/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js > File ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js > (right): ...
6 years, 3 months ago (2014-09-18 04:18:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/574293002/80001
6 years, 3 months ago (2014-09-18 04:24:40 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/57527) android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/5198)
6 years, 3 months ago (2014-09-18 04:27:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574293002/80001
6 years, 3 months ago (2014-09-18 11:29:41 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/57633) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/62436) android_arm64_dbg_recipe ...
6 years, 3 months ago (2014-09-18 11:32:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/574293002/120001
6 years, 3 months ago (2014-09-20 21:01:26 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:120001) as 62bad196290cac8341748ee49ba085d1dff523f4
6 years, 3 months ago (2014-09-20 21:55:54 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-20 21:56:29 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/19d31bfb5de5acba66036f5acb2a5a140d1d378d
Cr-Commit-Position: refs/heads/master@{#295893}

Powered by Google App Engine
This is Rietveld 408576698