Index: chrome/browser/renderer_host/render_view_host.cc |
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc |
index 0f80652afe9568d8a00a77a5f450b3dc518bc944..e049523ba593ba0b6a31367d8a3a38a39b1725e8 100644 |
--- a/chrome/browser/renderer_host/render_view_host.cc |
+++ b/chrome/browser/renderer_host/render_view_host.cc |
@@ -398,8 +398,9 @@ void RenderViewHost::DragTargetDragEnter(const WebDropData& drop_data, |
for (std::vector<std::wstring>::const_iterator |
iter(drop_data.filenames.begin()); |
iter != drop_data.filenames.end(); ++iter) { |
- policy->GrantRequestURL(process()->pid(), net::FilePathToFileURL(*iter)); |
- policy->GrantUploadFile(process()->pid(), FilePath::FromWStringHack(*iter)); |
+ FilePath path = FilePath::FromWStringHack(*iter); |
+ policy->GrantRequestURL(process()->pid(), net::FilePathToFileURL(path)); |
+ policy->GrantUploadFile(process()->pid(), path); |
} |
Send(new ViewMsg_DragTargetDragEnter(routing_id(), drop_data, client_pt, |
screen_pt)); |