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

Unified Diff: webkit/common/fileapi/file_system_util.cc

Issue 16109008: Cleanup: Deprecate DriveFileSyncService::kServiceName (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
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

Powered by Google App Engine
This is Rietveld 408576698