diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-06 04:06:19 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-06 04:06:19 +0000 |
commit | a1bb97624e983eb5a208ebb3449ac7a2066d0676 (patch) | |
tree | 8e387404df5d318856910bd623474d59856e9ce2 /webkit/fileapi | |
parent | 9d6301b41febeb293115b81dafbaf0f7531f0af2 (diff) | |
download | chromium_src-a1bb97624e983eb5a208ebb3449ac7a2066d0676.zip chromium_src-a1bb97624e983eb5a208ebb3449ac7a2066d0676.tar.gz chromium_src-a1bb97624e983eb5a208ebb3449ac7a2066d0676.tar.bz2 |
Support FileSystem API in extensions
BUG=61534
TEST=see if the feature works in an extension
Review URL: http://codereview.chromium.org/4439002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi')
-rw-r--r-- | webkit/fileapi/file_system_path_manager.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_path_manager.cc b/webkit/fileapi/file_system_path_manager.cc index c974dba..2bd1f9e 100644 --- a/webkit/fileapi/file_system_path_manager.cc +++ b/webkit/fileapi/file_system_path_manager.cc @@ -75,6 +75,8 @@ FilePath::StringType CreateUniqueDirectoryName(const GURL& origin_url) { return unique; } +static const char kExtensionScheme[] = "chrome-extension"; + } // anonymous namespace class FileSystemPathManager::GetFileSystemRootPathTask @@ -320,6 +322,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.SchemeIsFile() && allow_file_access_from_files_); } |