Index: third_party/leveldatabase/env_chromium.cc |
diff --git a/third_party/leveldatabase/env_chromium.cc b/third_party/leveldatabase/env_chromium.cc |
index 76f081f0c65b56fc379f29136c530958a55be83f..b34cecd37023e56271966a8bc2b13290d2719582 100644 |
--- a/third_party/leveldatabase/env_chromium.cc |
+++ b/third_party/leveldatabase/env_chromium.cc |
@@ -338,11 +338,7 @@ std::string FilePathToString(const base::FilePath& file_path) { |
} |
base::FilePath ChromiumEnv::CreateFilePath(const std::string& file_path) { |
-#if defined(OS_WIN) |
- return base::FilePath(base::UTF8ToUTF16(file_path)); |
-#else |
- return base::FilePath(file_path); |
-#endif |
+ return base::FilePath::FromUTF8Unsafe(file_path); |
} |
bool ChromiumEnv::MakeBackup(const std::string& fname) { |