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

Unified Diff: base/native_library_posix.cc

Issue 2048523002: Fix base::GetNativeLibraryName() for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native_lib_clean
Patch Set: Remove string16 version of GetNativeLibraryName Created 4 years, 6 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
Index: base/native_library_posix.cc
diff --git a/base/native_library_posix.cc b/base/native_library_posix.cc
index 0d5ab804235fed1067ade7371495a0e1cb30d249..c582b65cc6cb71b62507ba887b165f4e7173b054 100644
--- a/base/native_library_posix.cc
+++ b/base/native_library_posix.cc
@@ -50,8 +50,8 @@ void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
}
// static
-string16 GetNativeLibraryName(StringPiece16 name) {
- return ASCIIToUTF16("lib") + name.as_string() + ASCIIToUTF16(".so");
+std::string GetNativeLibraryName(StringPiece name) {
+ return "lib" + name.as_string() + ".so";
}
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698