| Index: webkit/plugins/npapi/plugin_stream.cc
|
| diff --git a/webkit/plugins/npapi/plugin_stream.cc b/webkit/plugins/npapi/plugin_stream.cc
|
| index 1769b68609573b7c608fb2a0b9c50abd1cecbc20..44fc2247b4e4683dc1bacaf7d22d6a66503a4c29 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();
|
| }
|
|
|