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

Unified Diff: webkit/fileapi/file_system_util.cc

Issue 11833002: Cleanup: Add fileapi::GetIsolatedFileSystemRootURIString (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months 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
« webkit/fileapi/file_system_util.h ('K') | « webkit/fileapi/file_system_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« webkit/fileapi/file_system_util.h ('K') | « webkit/fileapi/file_system_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698