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

Issue 615523002: Files.app: Stop to use file system URLs having externalfile:// scheme origin internally. (Closed)

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

Description

Files.app: Stop to use file system URLs having externalfile:// scheme origin internally. Priviously in the external file protocol handler, for accessing files via file system API, we uses file system URLs having externalfile:// scheme origin internally. And we added special check to pass the origin in IsAccessAllowed check. This CL removes the special check. Instead the CL generated isolated file system URL to access files. BUG=367027 TEST=unit_tests --gtest_filter=*ExternalFileURL* Committed: https://crrev.com/1a815bc356ca4e4e387870b2cd953030ae6647ba Cr-Commit-Position: refs/heads/master@{#297361}

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -49 lines) Patch
M chrome/browser/chromeos/fileapi/external_file_url_request_job.h View 3 chunks +21 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_request_job.cc View 1 8 chunks +61 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_util.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_util.cc View 1 chunk +13 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/fileapi/external_file_url_util_unittest.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/fileapi/file_system_backend.cc View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
hirono
I found a way to remove externalfile origin check from IsAccessAllowed. PTAL the CL? Thank ...
6 years, 2 months ago (2014-09-29 12:29:26 UTC) #2
mtomasz
On 2014/09/29 12:29:26, hirono wrote: > I found a way to remove externalfile origin check ...
6 years, 2 months ago (2014-09-29 12:30:02 UTC) #3
mtomasz
https://codereview.chromium.org/615523002/diff/1/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc File chrome/browser/chromeos/fileapi/external_file_url_request_job.cc (right): https://codereview.chromium.org/615523002/diff/1/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc#newcode66 chrome/browser/chromeos/fileapi/external_file_url_request_job.cc:66: GURL(""), nit: Maybe just GURL()? https://codereview.chromium.org/615523002/diff/1/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc#newcode314 chrome/browser/chromeos/fileapi/external_file_url_request_job.cc:314: file_system_url_, offset, ...
6 years, 2 months ago (2014-09-29 12:47:40 UTC) #4
hirono
Thank you! https://codereview.chromium.org/615523002/diff/1/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc File chrome/browser/chromeos/fileapi/external_file_url_request_job.cc (right): https://codereview.chromium.org/615523002/diff/1/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc#newcode66 chrome/browser/chromeos/fileapi/external_file_url_request_job.cc:66: GURL(""), On 2014/09/29 12:47:40, mtomasz wrote: > ...
6 years, 2 months ago (2014-09-29 13:24:02 UTC) #5
mtomasz
lgtm from me, but please ask @tzik for the final approval, since I may not ...
6 years, 2 months ago (2014-09-29 13:35:45 UTC) #6
hirono
PTAL the CL? Thank you!
6 years, 2 months ago (2014-09-29 14:44:54 UTC) #8
tzik
lgtm
6 years, 2 months ago (2014-09-30 04:00:27 UTC) #9
hirono
On 2014/09/30 04:00:27, tzik wrote: > lgtm Thank you!
6 years, 2 months ago (2014-09-30 04:43:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615523002/20001
6 years, 2 months ago (2014-09-30 04:46:41 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as bbc77b2b60532dea4457a76f05fcba210d745f9a
6 years, 2 months ago (2014-09-30 04:57:25 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 04:58:17 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1a815bc356ca4e4e387870b2cd953030ae6647ba
Cr-Commit-Position: refs/heads/master@{#297361}

Powered by Google App Engine
This is Rietveld 408576698