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

Unified Diff: webkit/browser/fileapi/external_mount_points.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/browser/fileapi/external_mount_points.cc
diff --git a/webkit/browser/fileapi/external_mount_points.cc b/webkit/browser/fileapi/external_mount_points.cc
index 269c09e2c17fd0e0dfe2a64bb5864f06110d02cd..2b6d967b6025deb7a9bc511bedf332449dcbdf60 100644
--- a/webkit/browser/fileapi/external_mount_points.cc
+++ b/webkit/browser/fileapi/external_mount_points.cc
@@ -257,6 +257,19 @@ base::FilePath ExternalMountPoints::CreateVirtualRootPath(
return base::FilePath().AppendASCII(mount_name);
}
+FileSystemURL ExternalMountPoints::CreateExternalFileSystemURL(
+ const GURL& origin,
+ const std::string& mount_name,
+ const base::FilePath& path) const {
+ return CreateCrackedFileSystemURL(
+ origin,
+ fileapi::kFileSystemTypeExternal,
+ // Avoid using FilePath::Append as path may be an absolute path.
+ base::FilePath(
+ CreateVirtualRootPath(mount_name).value() +
+ base::FilePath::kSeparators[0] + path.value()));
+}
+
ExternalMountPoints::ExternalMountPoints() {}
ExternalMountPoints::~ExternalMountPoints() {

Powered by Google App Engine
This is Rietveld 408576698