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

Issue 2633053003: Fix broken quick view in non-local volumes. (Closed)

Created:
3 years, 11 months ago by Shuhei Takahashi
Modified:
3 years, 11 months ago
Reviewers:
oka
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix broken quick previews in non-local volumes. In MTP and media view volumes, quick view was failing to show previews of media files because WebView does not have permissions to access those files. This patch restricts the volume types for which quick view supports previews, so that broken <img> is not shown to users. Note that |item.externalFileUrl| is filled if and only if files are on DRIVE or PROVIDED volumes (see MultiMetadataProvider.prototype.get()), so this patch changes behavior only on MTP, MEDIA_VIEW volumes. BUG=681517 TEST=Broken <img> is not shown in MTP and media views. TEST=Preview works on Drive, Downloads, ZIP archive and RAR archive. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2633053003 Cr-Commit-Position: refs/heads/master@{#444032} Committed: https://chromium.googlesource.com/chromium/src/+/d72441d795c9e7a397c96ddbb79409e22fc73ea3

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : Rebased. #

Patch Set 5 : Do not query unnecessary externalFileUrl. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -5 lines) Patch
M ui/file_manager/file_manager/foreground/js/file_manager.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/js/quick_view_controller.js View 1 2 3 4 6 chunks +39 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (22 generated)
Shuhei Takahashi
oka: PTAL
3 years, 11 months ago (2017-01-17 08:04:02 UTC) #16
oka
I refactored controller https://codereview.chromium.org/2631143002. Could you rebase? Thank you. https://codereview.chromium.org/2633053003/diff/40001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js File ui/file_manager/file_manager/foreground/js/quick_view_controller.js (right): https://codereview.chromium.org/2633053003/diff/40001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js#newcode399 ui/file_manager/file_manager/foreground/js/quick_view_controller.js:399: ...
3 years, 11 months ago (2017-01-17 09:22:57 UTC) #17
Shuhei Takahashi
Thanks for heads-up. I've rebased the patch onto ToT. https://codereview.chromium.org/2633053003/diff/40001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js File ui/file_manager/file_manager/foreground/js/quick_view_controller.js (right): https://codereview.chromium.org/2633053003/diff/40001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js#newcode399 ui/file_manager/file_manager/foreground/js/quick_view_controller.js:399: ...
3 years, 11 months ago (2017-01-17 11:48:29 UTC) #20
oka
lgtm Thank you!
3 years, 11 months ago (2017-01-17 12:06:01 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2633053003/80001
3 years, 11 months ago (2017-01-17 12:11:58 UTC) #25
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 12:15:49 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/d72441d795c9e7a397c96ddbb794...

Powered by Google App Engine
This is Rietveld 408576698