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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 10713007: Make isolated file system works for a device root (e.g. X:\\) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 5 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
« no previous file with comments | « webkit/fileapi/isolated_file_util_unittest.cc ('k') | webkit/glue/web_intent_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_mount_point_provider.cc
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc
index d2055d88bb82f48c3f4a1fedd05e07c28754a341..35cbcf37e4eecf17250468d64bddaa685911b719 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -69,10 +69,11 @@ FilePath IsolatedMountPointProvider::GetFileSystemRootPathOnFileThread(
if (create || type != kFileSystemTypeIsolated)
return FilePath();
std::string fsid;
- FilePath root, path;
+ FilePath path;
+ IsolatedContext::FileInfo root;
if (!isolated_context()->CrackIsolatedPath(virtual_path, &fsid, &root, &path))
return FilePath();
- return root;
+ return root.path;
}
bool IsolatedMountPointProvider::IsAccessAllowed(
@@ -81,9 +82,9 @@ bool IsolatedMountPointProvider::IsAccessAllowed(
return false;
std::string filesystem_id;
- FilePath root, path;
+ FilePath path;
return isolated_context()->CrackIsolatedPath(
- virtual_path, &filesystem_id, &root, &path);
+ virtual_path, &filesystem_id, NULL, &path);
}
bool IsolatedMountPointProvider::IsRestrictedFileName(
@@ -98,8 +99,8 @@ FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil() {
FilePath IsolatedMountPointProvider::GetPathForPermissionsCheck(
const FilePath& virtual_path) const {
std::string fsid;
- FilePath root, path;
- if (!isolated_context()->CrackIsolatedPath(virtual_path, &fsid, &root, &path))
+ FilePath path;
+ if (!isolated_context()->CrackIsolatedPath(virtual_path, &fsid, NULL, &path))
return FilePath();
return path;
}
« no previous file with comments | « webkit/fileapi/isolated_file_util_unittest.cc ('k') | webkit/glue/web_intent_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698