Index: net/udp/udp_socket_posix.cc |
diff --git a/net/udp/udp_socket_posix.cc b/net/udp/udp_socket_posix.cc |
index 4697dff9f43af34ee63541bec283e040a2d5dc08..205be372de5f602c1457a4876181bf8b75ba3c7d 100644 |
--- a/net/udp/udp_socket_posix.cc |
+++ b/net/udp/udp_socket_posix.cc |
@@ -352,8 +352,8 @@ int UDPSocketPosix::BindToNetwork( |
if (setNetworkForSocket == nullptr) { |
// Android's netd client library should always be loaded in our address |
// space as it shims libc functions like connect(). |
- base::FilePath file(base::FilePath::FromUTF16Unsafe( |
- base::GetNativeLibraryName(base::ASCIIToUTF16("netd_client")))); |
+ base::FilePath file(base::FilePath::FromUTF8Unsafe( |
Mark Mentovai
2016/06/13 19:29:03
Is FromUTF8Unsafe() even needed in this Android-on
Lei Zhang
2016/06/13 21:30:34
Nope.
|
+ base::GetNativeLibraryName("netd_client"))); |
base::NativeLibrary lib = base::LoadNativeLibrary(file, nullptr); |
setNetworkForSocket = reinterpret_cast<SetNetworkForSocket>( |
base::GetFunctionPointerFromNativeLibrary(lib, "setNetworkForSocket")); |