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

Issue 589473002: Files.app: Enable externalfile: protocol for MTP volumes. (Closed)

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

Description

Files.app: Enable externalfile: protocol for MTP volumes. Previously drive paths are used to obtain 'externalfile:' URL and the URL is converted back to the drive path. The CL uses FileSystemURL instead of drive paths so that the app can generate external file URLs for other than drive files, and enables external file URLs for MTP and FSP volumes. BUG=367027 TEST=manually Committed: https://crrev.com/83a448b281c6b3e3344731fae2725c32237f47ec Cr-Commit-Position: refs/heads/master@{#296901}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebased. #

Patch Set 4 : #

Patch Set 5 : Add mime fallback. #

Patch Set 6 : Rebased. #

Patch Set 7 : Rebased. #

Patch Set 8 : Remove drive dpendency from external_file_util #

Patch Set 9 : Fixed RegularFile test. #

Patch Set 10 : nit fix #

Total comments: 12

Patch Set 11 : Fixed. #

Total comments: 6

Patch Set 12 : Fixed. #

Total comments: 5

Patch Set 13 : #

Patch Set 14 : Fixed test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -98 lines) Patch
M chrome/browser/chromeos/file_manager/file_browser_handlers.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/open_with_browser.h View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/open_with_browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_request_job.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -36 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_request_job_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +33 lines, -16 lines 0 comments Download
M storage/browser/fileapi/file_system_url.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M storage/browser/fileapi/file_system_url.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
hirono
PTAL the CL? This depends on crrev.com/580023003, and the last patch to series of externalfle: ...
6 years, 3 months ago (2014-09-24 05:53:51 UTC) #2
hirono
@mtomasz - All dependency has been submitted. Also I removed drive dependency from external_file_util as ...
6 years, 3 months ago (2014-09-25 06:28:02 UTC) #3
mtomasz
https://codereview.chromium.org/589473002/diff/180001/chrome/browser/chromeos/file_manager/file_browser_handlers.cc File chrome/browser/chromeos/file_manager/file_browser_handlers.cc (right): https://codereview.chromium.org/589473002/diff/180001/chrome/browser/chromeos/file_manager/file_browser_handlers.cc#newcode454 chrome/browser/chromeos/file_manager/file_browser_handlers.cc:454: num_opened += util::OpenFileWithBrowser(profile, file_url); We're adding here a bool ...
6 years, 2 months ago (2014-09-25 06:48:09 UTC) #4
hirono
https://codereview.chromium.org/589473002/diff/180001/chrome/browser/chromeos/file_manager/file_browser_handlers.cc File chrome/browser/chromeos/file_manager/file_browser_handlers.cc (right): https://codereview.chromium.org/589473002/diff/180001/chrome/browser/chromeos/file_manager/file_browser_handlers.cc#newcode454 chrome/browser/chromeos/file_manager/file_browser_handlers.cc:454: num_opened += util::OpenFileWithBrowser(profile, file_url); On 2014/09/25 06:48:09, mtomasz wrote: ...
6 years, 2 months ago (2014-09-25 07:38:08 UTC) #5
kinaba
https://codereview.chromium.org/589473002/diff/200001/chrome/browser/chromeos/file_manager/open_with_browser.cc File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/589473002/diff/200001/chrome/browser/chromeos/file_manager/open_with_browser.cc#newcode146 chrome/browser/chromeos/file_manager/open_with_browser.cc:146: page_url = net::FilePathToFileURL(file_system_url.path()); nit: file_system_url.path() => file_path https://codereview.chromium.org/589473002/diff/200001/chrome/browser/chromeos/file_manager/open_with_browser.cc#newcode160 chrome/browser/chromeos/file_manager/open_with_browser.cc:160: ...
6 years, 2 months ago (2014-09-25 08:15:21 UTC) #7
hirono
Thanks! https://codereview.chromium.org/589473002/diff/200001/chrome/browser/chromeos/file_manager/open_with_browser.cc File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/589473002/diff/200001/chrome/browser/chromeos/file_manager/open_with_browser.cc#newcode146 chrome/browser/chromeos/file_manager/open_with_browser.cc:146: page_url = net::FilePathToFileURL(file_system_url.path()); On 2014/09/25 08:15:21, kinaba wrote: ...
6 years, 2 months ago (2014-09-25 09:00:04 UTC) #8
kinaba
lgtm
6 years, 2 months ago (2014-09-25 09:10:28 UTC) #9
mtomasz
https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/file_manager/open_with_browser.cc File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/file_manager/open_with_browser.cc#newcode157 chrome/browser/chromeos/file_manager/open_with_browser.cc:157: // drive's web interface. Otherwise (e.g. MTP, FSP), the ...
6 years, 2 months ago (2014-09-25 09:53:11 UTC) #10
hirono
Thank you! https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/file_manager/open_with_browser.cc File chrome/browser/chromeos/file_manager/open_with_browser.cc (right): https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/file_manager/open_with_browser.cc#newcode157 chrome/browser/chromeos/file_manager/open_with_browser.cc:157: // drive's web interface. Otherwise (e.g. MTP, ...
6 years, 2 months ago (2014-09-25 11:01:53 UTC) #11
mtomasz
lgtm https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/fileapi/external_file_url_util.cc File chrome/browser/chromeos/fileapi/external_file_url_util.cc (right): https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/fileapi/external_file_url_util.cc#newcode58 chrome/browser/chromeos/fileapi/external_file_url_util.cc:58: if (!file_manager::util::ConvertAbsoluteFilePathToFileSystemUrl( On 2014/09/25 11:01:53, hirono wrote: > ...
6 years, 2 months ago (2014-09-26 00:27:13 UTC) #12
mtomasz
On 2014/09/26 00:27:13, mtomasz wrote: > lgtm > > https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/fileapi/external_file_url_util.cc > File chrome/browser/chromeos/fileapi/external_file_url_util.cc (right): > ...
6 years, 2 months ago (2014-09-26 00:28:32 UTC) #13
mtomasz
On 2014/09/26 00:27:13, mtomasz wrote: > lgtm > > https://codereview.chromium.org/589473002/diff/220001/chrome/browser/chromeos/fileapi/external_file_url_util.cc > File chrome/browser/chromeos/fileapi/external_file_url_util.cc (right): > ...
6 years, 2 months ago (2014-09-26 00:28:32 UTC) #14
hirono
@tzik - PTAL the CL? I need a new factory function for FileSystemURL to generated ...
6 years, 2 months ago (2014-09-26 03:50:09 UTC) #16
tzik
lgtm
6 years, 2 months ago (2014-09-26 06:47:33 UTC) #17
hirono
Thank you!
6 years, 2 months ago (2014-09-26 06:48:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/589473002/260001
6 years, 2 months ago (2014-09-26 06:49:12 UTC) #20
commit-bot: I haz the power
Committed patchset #14 (id:260001) as ef6a9df4ca2d32b1375f2c49f1b8ef17c1cfbd6d
6 years, 2 months ago (2014-09-26 06:53:45 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 06:54:21 UTC) #22
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/83a448b281c6b3e3344731fae2725c32237f47ec
Cr-Commit-Position: refs/heads/master@{#296901}

Powered by Google App Engine
This is Rietveld 408576698