| Index: ppapi/shared_impl/private/net_address_private_impl.cc
|
| diff --git a/ppapi/shared_impl/private/net_address_private_impl.cc b/ppapi/shared_impl/private/net_address_private_impl.cc
|
| index d410d8f28dbe7286b1e5b78391c2a2db00623dd5..b259c7e2e78427b07d03d08dbdd1d46edeb3c1cf 100644
|
| --- a/ppapi/shared_impl/private/net_address_private_impl.cc
|
| +++ b/ppapi/shared_impl/private/net_address_private_impl.cc
|
| @@ -451,7 +451,7 @@ bool NetAddressPrivateImpl::SockaddrToNetAddress(
|
|
|
| // static
|
| bool NetAddressPrivateImpl::IPEndPointToNetAddress(
|
| - const std::vector<uint8_t>& address,
|
| + const net::IPAddress::IPAddressBytes& address,
|
| uint16_t port,
|
| PP_NetAddress_Private* addr) {
|
| if (!addr)
|
| @@ -484,7 +484,7 @@ bool NetAddressPrivateImpl::IPEndPointToNetAddress(
|
| // static
|
| bool NetAddressPrivateImpl::NetAddressToIPEndPoint(
|
| const PP_NetAddress_Private& addr,
|
| - std::vector<uint8_t>* address,
|
| + net::IPAddress::IPAddressBytes* address,
|
| uint16_t* port) {
|
| if (!address || !port)
|
| return false;
|
| @@ -494,9 +494,8 @@ bool NetAddressPrivateImpl::NetAddressToIPEndPoint(
|
| return false;
|
|
|
| *port = net_addr->port;
|
| - size_t address_size = GetAddressSize(net_addr);
|
| - address->assign(&net_addr->address[0], &net_addr->address[address_size]);
|
| -
|
| + for (uint8_t byte : net_addr->address)
|
| + address->push_back(byte);
|
| return true;
|
| }
|
| #endif // !defined(OS_NACL)
|
|
|