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

Unified Diff: chrome/browser/extensions/platform_app_launcher.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
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, &registered_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.

Powered by Google App Engine
This is Rietveld 408576698