| Index: webkit/common/fileapi/file_system_util.cc
|
| diff --git a/webkit/common/fileapi/file_system_util.cc b/webkit/common/fileapi/file_system_util.cc
|
| index f7e80b21eef049a3144462ba0a4b0c83e1a90d1d..ca656cc61782a8c5d9a1d6c9f9fc9070a66694ef 100644
|
| --- a/webkit/common/fileapi/file_system_util.cc
|
| +++ b/webkit/common/fileapi/file_system_util.cc
|
| @@ -355,4 +355,16 @@ std::string GetIsolatedFileSystemRootURIString(
|
| return root;
|
| }
|
|
|
| +std::string GetExternalFileSystemRootURIString(
|
| + const GURL& origin_url,
|
| + const std::string& mount_name) {
|
| + std::string root = GetFileSystemRootURI(origin_url,
|
| + kFileSystemTypeExternal).spec();
|
| + if (base::FilePath::FromUTF8Unsafe(mount_name).ReferencesParent())
|
| + return std::string();
|
| + root.append(mount_name);
|
| + root.append("/");
|
| + return root;
|
| +}
|
| +
|
| } // namespace fileapi
|
|
|