Index: content/renderer/pepper/pepper_file_chooser_host.cc |
diff --git a/content/renderer/pepper/pepper_file_chooser_host.cc b/content/renderer/pepper/pepper_file_chooser_host.cc |
index d067c201e39bab8a16cbf590796c2cb549671289..f0b0697f7d690fc40c27809423a75839e9d07b6e 100644 |
--- a/content/renderer/pepper/pepper_file_chooser_host.cc |
+++ b/content/renderer/pepper/pepper_file_chooser_host.cc |
@@ -94,11 +94,7 @@ void PepperFileChooserHost::StoreChosenFiles( |
std::vector<base::FilePath> file_paths; |
std::vector<std::string> display_names; |
for (size_t i = 0; i < files.size(); i++) { |
-#if defined(OS_WIN) |
- base::FilePath file_path(base::UTF8ToWide(files[i].path)); |
-#else |
- base::FilePath file_path(files[i].path); |
-#endif |
+ base::FilePath file_path = base::FilePath::FromUTF8Unsafe(files[i].path); |
file_paths.push_back(file_path); |
create_msgs.push_back(PpapiHostMsg_FileRef_CreateForRawFS(file_path)); |
display_names.push_back(files[i].display_name); |