Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2599)

Unified Diff: third_party/leveldatabase/env_chromium.cc

Issue 631163002: Clean up ifdef around FilePath creation in /src/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698