| 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 b06e6d8ea7fcfacfe2af6b4d869b9bbaa4467d63..2026b338d99e53cb96800eb65644196af85470e2 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 file_name = fileapi::IsolatedContext::GetNameForPath(file_path);
|
| 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_name, file_path);
|
| // 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());
|
| + file_name);
|
| }
|
|
|
| // The profile the app should be run in.
|
|
|