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

Unified Diff: webkit/fileapi/isolated_context.cc

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout test crash fix 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_context.h ('k') | webkit/fileapi/isolated_context_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/isolated_context.cc
diff --git a/webkit/fileapi/isolated_context.cc b/webkit/fileapi/isolated_context.cc
index cc10b12e2516127422af8370795e8a614475b6e3..8eac660bdf5582fda8fa2f1b54c9fbf8277c645d 100644
--- a/webkit/fileapi/isolated_context.cc
+++ b/webkit/fileapi/isolated_context.cc
@@ -181,7 +181,7 @@ void IsolatedContext::RemoveReference(const std::string& filesystem_id) {
bool IsolatedContext::CrackIsolatedPath(const FilePath& virtual_path,
std::string* filesystem_id,
- FileInfo* root_info,
+ FileSystemType* type,
FilePath* path) const {
DCHECK(filesystem_id);
DCHECK(path);
@@ -204,6 +204,8 @@ bool IsolatedContext::CrackIsolatedPath(const FilePath& virtual_path,
if (found_instance == instance_map_.end())
return false;
*filesystem_id = fsid;
+ if (type)
+ *type = found_instance->second->type();
if (components.size() == 1) {
path->clear();
return true;
@@ -213,8 +215,6 @@ bool IsolatedContext::CrackIsolatedPath(const FilePath& virtual_path,
std::string name = FilePath(components[1]).AsUTF8Unsafe();
if (!found_instance->second->ResolvePathForName(name, &cracked_path))
return false;
- if (root_info)
- *root_info = FileInfo(name, cracked_path);
for (size_t i = 2; i < components.size(); ++i)
cracked_path = cracked_path.Append(components[i]);
*path = cracked_path;
« no previous file with comments | « webkit/fileapi/isolated_context.h ('k') | webkit/fileapi/isolated_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698