diff options
author | mrunal.kapade@intel.com <mrunal.kapade@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 23:16:49 +0000 |
---|---|---|
committer | mrunal.kapade@intel.com <mrunal.kapade@intel.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 23:16:49 +0000 |
commit | 34ea9067e109e321d4418c80117bc667e6fba2cc (patch) | |
tree | 6f629f20bc0b4ff3cd6e061bda88f6092fb85ccf /webkit/plugins/npapi/plugin_stream.cc | |
parent | 33286c9c4a71992552614e64d7925cff05071caf (diff) | |
download | chromium_src-34ea9067e109e321d4418c80117bc667e6fba2cc.zip chromium_src-34ea9067e109e321d4418c80117bc667e6fba2cc.tar.gz chromium_src-34ea9067e109e321d4418c80117bc667e6fba2cc.tar.bz2 |
Clean up ifdef around FilePath creation(webkit)
Splitting from the original patch here, crrev.com/14942008
to only include 'webkit' specific changes
BUG=102853
Review URL: https://chromiumcodereview.appspot.com/14680012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi/plugin_stream.cc')
-rw-r--r-- | webkit/plugins/npapi/plugin_stream.cc | 6 |
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(); } |