Index: tools/gn/generate_test_gn_data.cc |
diff --git a/tools/gn/generate_test_gn_data.cc b/tools/gn/generate_test_gn_data.cc |
index fe4fdc75732a3c3f918fadf21d22d93084375e64..6489df40a8bc0477815046796fe0db7547ee32f1 100644 |
--- a/tools/gn/generate_test_gn_data.cc |
+++ b/tools/gn/generate_test_gn_data.cc |
@@ -17,11 +17,7 @@ int files_written = 0; |
int targets_written = 0; |
base::FilePath UTF8ToFilePath(const std::string& s) { |
-#if defined(OS_WIN) |
- return base::FilePath(base::UTF8ToWide(s)); |
-#else |
- return base::FilePath(s); |
-#endif |
+return base::FilePath::FromUTF8Unsafe(s); |
} |
std::string FilePathToUTF8(const base::FilePath& path) { |