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

Unified Diff: chrome/browser/chromeos/fileapi/file_system_backend.cc

Issue 615523002: Files.app: Stop to use file system URLs having externalfile:// scheme origin internally. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/fileapi/external_file_url_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/fileapi/file_system_backend.cc
diff --git a/chrome/browser/chromeos/fileapi/file_system_backend.cc b/chrome/browser/chromeos/fileapi/file_system_backend.cc
index f9f5ecff083bd0e0821cd277b9df52cd9a4119e9..ae563576c310573e6eee0fe81b0db0214bfd8387 100644
--- a/chrome/browser/chromeos/fileapi/file_system_backend.cc
+++ b/chrome/browser/chromeos/fileapi/file_system_backend.cc
@@ -181,12 +181,6 @@ bool FileSystemBackend::IsAccessAllowed(
return true;
}
- // Grant access for URL having "externalfile:" scheme. The URL
- // filesystem:externalfile:/xxx cannot be parsed directly. The URL is created
- // only by DriveURLRequestJob.
- if (url.origin().scheme() == chrome::kExternalFileScheme)
- return true;
-
// Check first to make sure this extension has fileBrowserHander permissions.
if (!special_storage_policy_.get() ||
!special_storage_policy_->IsFileHandler(extension_id))
« no previous file with comments | « chrome/browser/chromeos/fileapi/external_file_url_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698