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

Unified Diff: webkit/fileapi/file_system_path_manager.cc

Issue 4439002: Support FileSystem API in extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_path_manager.cc
diff --git a/webkit/fileapi/file_system_path_manager.cc b/webkit/fileapi/file_system_path_manager.cc
index c974dba2a9f9d692e2b5df1ef90b2bfc2054239f..2bd1f9ed20e51f97f3c6ed65a8bed6b934b31de0 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_);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698