Index: chrome/browser/extensions/platform_app_launcher.cc |
diff --git a/chrome/browser/extensions/platform_app_launcher.cc b/chrome/browser/extensions/platform_app_launcher.cc |
index 56f8bfcc8485c09003a019dd4d6229207dfa88b9..3d798a19a9af0d74b4e9a3760fa8519cfb48437b 100644 |
--- a/chrome/browser/extensions/platform_app_launcher.cc |
+++ b/chrome/browser/extensions/platform_app_launcher.cc |
@@ -168,21 +168,19 @@ class PlatformAppCommandLineLauncher |
if (!policy->CanReadFile(renderer_id, file_path)) |
policy->GrantReadFile(renderer_id, file_path); |
- std::set<FilePath> filesets; |
- filesets.insert(file_path); |
- |
+ std::string registered_name; |
fileapi::IsolatedContext* isolated_context = |
fileapi::IsolatedContext::GetInstance(); |
DCHECK(isolated_context); |
- std::string filesystem_id = isolated_context->RegisterIsolatedFileSystem( |
- filesets); |
+ std::string filesystem_id = isolated_context->RegisterFileSystemForFile( |
+ file_path, ®istered_name); |
// Granting read file system permission as well to allow file-system |
// read operations. |
policy->GrantReadFileSystem(renderer_id, filesystem_id); |
extensions::AppEventRouter::DispatchOnLaunchedEventWithFileEntry( |
profile_, extension_, ASCIIToUTF16(kViewIntent), filesystem_id, |
- file_path.BaseName()); |
+ registered_name); |
} |
// The profile the app should be run in. |