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

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: 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/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 048ef4ea46e0837434dd0091c1f7f50fbdf744a6..276541bd8cfa30798f3a450ad02ebc2df9a3025b 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -778,12 +778,13 @@ 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]));
+ fileapi::IsolatedContext::FileInfoSet files;
+ for (size_t i = 0; i < filenames.size(); ++i) {
+ FilePath path = webkit_glue::WebStringToFilePath(filenames[i]);
+ files.AddPath(path);
+ }
std::string filesystemId =
- fileapi::IsolatedContext::GetInstance()->RegisterIsolatedFileSystem(
- files);
+ fileapi::IsolatedContext::GetInstance()->RegisterFileSystem(files);
return UTF8ToUTF16(filesystemId);
}
« no previous file with comments | « webkit/glue/web_intent_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698