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

Unified Diff: chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc

Issue 341043008: Add FileSystemID parameter to IsolatedContext::RegisterFileSystemForPath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
diff --git a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
index 277bc9908dceab83e1044b2deaff22a3e6257b39..91b24c56cebf03b40d743e6c48a362539fdfd5d8 100644
--- a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
+++ b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
@@ -299,7 +299,7 @@ GrantedFileEntry CreateFileEntry(
DCHECK(isolated_context);
result.filesystem_id = isolated_context->RegisterFileSystemForPath(
- fileapi::kFileSystemTypeNativeForPlatformApp, path,
+ fileapi::kFileSystemTypeNativeForPlatformApp, std::string(), path,
&result.registered_name);
content::ChildProcessSecurityPolicy* policy =
@@ -368,8 +368,10 @@ bool ValidateFileEntryAndGetPath(
.Append(relative_path);
fileapi::FileSystemType type;
fileapi::FileSystemMountOption mount_option;
+ std::string cracked_id;
if (!context->CrackVirtualPath(
- virtual_path, &filesystem_id, &type, file_path, &mount_option)) {
+ virtual_path, &filesystem_id, &type, &cracked_id, file_path,
+ &mount_option)) {
*error = kInvalidParameters;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698