Index: webkit/fileapi/file_system_util.cc |
diff --git a/webkit/fileapi/file_system_util.cc b/webkit/fileapi/file_system_util.cc |
index 43033b6911c2f198f59c08d27c7d7fd844b4597c..aebdd60f93fd93344181c283e07629ded187a8ab 100644 |
--- a/webkit/fileapi/file_system_util.cc |
+++ b/webkit/fileapi/file_system_util.cc |
@@ -273,4 +273,20 @@ bool CrackIsolatedFileSystemName(const std::string& filesystem_name, |
return true; |
} |
+std::string GetIsolatedFileSystemRootURIString( |
+ const GURL& origin_url, |
+ const std::string& filesystem_id, |
+ const std::string& optional_root_name) { |
+ std::string root = GetFileSystemRootURI(origin_url, |
+ kFileSystemTypeIsolated).spec(); |
+ root.append(filesystem_id); |
+ root.append("/"); |
+ if (!optional_root_name.empty()) { |
+ DCHECK(!FilePath::FromUTF8Unsafe(optional_root_name).ReferencesParent()); |
+ root.append(optional_root_name); |
+ root.append("/"); |
+ } |
+ return root; |
+} |
+ |
} // namespace fileapi |