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_); |
} |