summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/npapi/plugin_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/plugins/npapi/plugin_stream.cc')
-rw-r--r--webkit/plugins/npapi/plugin_stream.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/webkit/plugins/npapi/plugin_stream.cc b/webkit/plugins/npapi/plugin_stream.cc
index 1769b68..44fc224 100644
--- a/webkit/plugins/npapi/plugin_stream.cc
+++ b/webkit/plugins/npapi/plugin_stream.cc
@@ -83,11 +83,7 @@ bool PluginStream::Open(const std::string& mime_type,
} else {
GURL gurl(stream_.url);
-#if defined(OS_WIN)
- base::FilePath path(UTF8ToWide(gurl.path()));
-#elif defined(OS_POSIX)
- base::FilePath path(gurl.path());
-#endif
+ base::FilePath path = base::FilePath::FromUTF8Unsafe(gurl.path());
if (net::GetMimeTypeFromFile(path, &temp_mime_type))
char_mime_type = temp_mime_type.c_str();
}