Index: content/renderer/pepper/url_response_info_util.cc |
diff --git a/content/renderer/pepper/url_response_info_util.cc b/content/renderer/pepper/url_response_info_util.cc |
index d657800330fc3918cb62922a80839101dfe66251..723e6579afb681c9aaa400ae233e0e191343d7e7 100644 |
--- a/content/renderer/pepper/url_response_info_util.cc |
+++ b/content/renderer/pepper/url_response_info_util.cc |
@@ -17,6 +17,7 @@ |
#include "ipc/ipc_message.h" |
#include "ppapi/proxy/ppapi_messages.h" |
#include "ppapi/shared_impl/url_response_info_data.h" |
+#include "third_party/WebKit/public/platform/FilePathConversion.h" |
#include "third_party/WebKit/public/platform/WebCString.h" |
#include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
@@ -91,7 +92,7 @@ void DataFromWebURLResponse(RendererPpapiHostImpl* host_impl, |
WebString file_path = response.downloadFilePath(); |
if (!file_path.isEmpty()) { |
- base::FilePath external_path = base::FilePath::FromUTF16Unsafe(file_path); |
+ base::FilePath external_path = blink::WebStringToFilePath(file_path); |
// TODO(teravest): Write a utility function to create resource hosts in the |
// renderer and browser. |
PepperFileRefRendererHost* renderer_host = |