Fix base::GetNativeLibraryName() for Mac.

- Also change GetNativeLibraryName() to take a StringPiece and return a
  std::string, instead of StringPiece16/string16.
- Use that in a few places to get rid of platform-specific ifdefs.

Review-Url: https://codereview.chromium.org/2048523002
Cr-Commit-Position: refs/heads/master@{#399759}
diff --git a/base/native_library.h b/base/native_library.h
index 5dc4802c..b4f3a3c 100644
--- a/base/native_library.h
+++ b/base/native_library.h
@@ -11,7 +11,6 @@
 #include <string>
 
 #include "base/base_export.h"
-#include "base/strings/string16.h"
 #include "base/strings/string_piece.h"
 #include "build/build_config.h"
 
@@ -90,10 +89,11 @@
                                                       StringPiece name);
 
 // Returns the full platform specific name for a native library.
+// |name| must be ASCII.
 // For example:
 // "mylib" returns "mylib.dll" on Windows, "libmylib.so" on Linux,
-// "mylib.dylib" on Mac.
-BASE_EXPORT string16 GetNativeLibraryName(StringPiece16 name);
+// "libmylib.dylib" on Mac.
+BASE_EXPORT std::string GetNativeLibraryName(StringPiece name);
 
 }  // namespace base