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

Unified Diff: webkit/support/webkit_support.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: Created 8 years, 6 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/isolated_context.h ('K') | « webkit/glue/web_intent_data.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index 66da94e278515a8974c1f5f6b9dddc3020596d06..3d4a717c6e8931d202f0bf5f3c31fe4c89ea58f3 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -772,12 +772,14 @@ void OpenFileSystem(WebFrame* frame, WebFileSystem::Type type,
WebKit::WebString RegisterIsolatedFileSystem(
const WebKit::WebVector<WebKit::WebString>& filenames) {
- std::set<FilePath> files;
- for (size_t i = 0; i < filenames.size(); ++i)
- files.insert(webkit_glue::WebStringToFilePath(filenames[i]));
+ std::vector<fileapi::IsolatedContext::FileInfo> files;
+ for (size_t i = 0; i < filenames.size(); ++i) {
+ FilePath path = webkit_glue::WebStringToFilePath(filenames[i]);
+ files.push_back(fileapi::IsolatedContext::FileInfo(
+ fileapi::IsolatedContext::GetNameForPath(path), path));
+ }
std::string filesystemId =
- fileapi::IsolatedContext::GetInstance()->RegisterIsolatedFileSystem(
- files);
+ fileapi::IsolatedContext::GetInstance()->RegisterFileSystem(files);
return UTF8ToUTF16(filesystemId);
}
« webkit/fileapi/isolated_context.h ('K') | « webkit/glue/web_intent_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698