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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index b984ad658ba2f735cc72569059ad5c41863f98d6..e497665b399f6886f364ea70a353639cd7754971 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -535,7 +535,8 @@ void RenderViewHostImpl::DragTargetDragEnter(
// Make sure we have the same display_name as the one we register.
if (iter->display_name.empty()) {
- std::string name = files.AddPath(path);
+ std::string name;
+ files.AddPath(path, &name);
iter->display_name = UTF8ToUTF16(name);
} else {
files.AddPathWithName(path, UTF16ToUTF8(iter->display_name));
@@ -561,7 +562,8 @@ void RenderViewHostImpl::DragTargetDragEnter(
fileapi::IsolatedContext* isolated_context =
fileapi::IsolatedContext::GetInstance();
DCHECK(isolated_context);
- std::string filesystem_id = isolated_context->RegisterFileSystem(files);
+ std::string filesystem_id = isolated_context->RegisterDraggedFileSystem(
+ files);
if (!filesystem_id.empty()) {
// Grant the permission iff the ID is valid.
policy->GrantReadFileSystem(renderer_id, filesystem_id);

Powered by Google App Engine
This is Rietveld 408576698