| Index: chrome/browser/extensions/api/socket/udp_socket.cc
|
| diff --git a/chrome/browser/extensions/api/socket/udp_socket.cc b/chrome/browser/extensions/api/socket/udp_socket.cc
|
| index b9baa21624f4616de8190625235e3f2e0267aab4..1e65b6b1c8794665312ee50ffb98039c1a67a0b5 100644
|
| --- a/chrome/browser/extensions/api/socket/udp_socket.cc
|
| +++ b/chrome/browser/extensions/api/socket/udp_socket.cc
|
| @@ -185,10 +185,6 @@ void UDPSocket::SendTo(scoped_refptr<net::IOBuffer> io_buffer,
|
| OnSendToComplete(result);
|
| }
|
|
|
| -bool UDPSocket::IsTCPSocket() {
|
| - return false;
|
| -}
|
| -
|
| bool UDPSocket::GetPeerAddress(net::IPEndPoint* address) {
|
| return !socket_.GetPeerAddress(address);
|
| }
|
| @@ -197,6 +193,10 @@ bool UDPSocket::GetLocalAddress(net::IPEndPoint* address) {
|
| return !socket_.GetLocalAddress(address);
|
| }
|
|
|
| +Socket::SocketType UDPSocket::GetSocketType() const {
|
| + return Socket::TYPE_UDP;
|
| +}
|
| +
|
| void UDPSocket::OnReadComplete(scoped_refptr<net::IOBuffer> io_buffer,
|
| int result) {
|
| DCHECK(!read_callback_.is_null());
|
|
|