summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/fileapi')
-rw-r--r--webkit/fileapi/file_system_path_manager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/fileapi/file_system_path_manager.cc b/webkit/fileapi/file_system_path_manager.cc
index 395f880..1013352 100644
--- a/webkit/fileapi/file_system_path_manager.cc
+++ b/webkit/fileapi/file_system_path_manager.cc
@@ -30,6 +30,7 @@ using WebKit::WebFileSystem;
using base::PlatformFileError;
+static const char kChromeScheme[] = "chrome";
static const char kExtensionScheme[] = "chrome-extension";
namespace fileapi {
@@ -105,7 +106,7 @@ bool FileSystemPathManager::IsAllowedScheme(const GURL& url) const {
// Basically we only accept http or https. We allow file:// URLs
// only if --allow-file-access-from-files flag is given.
return url.SchemeIs("http") || url.SchemeIs("https") ||
- url.SchemeIs(kExtensionScheme) ||
+ url.SchemeIs(kExtensionScheme) || url.SchemeIs(kChromeScheme) ||
(url.SchemeIsFile() && allow_file_access_from_files_);
}