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

Unified Diff: net/socket/server_socket.cc

Issue 1676023002: Make IPAddress::FromIPLiteral a member function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« net/base/ip_address_unittest.cc ('K') | « net/http/http_transaction_test_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/server_socket.cc
diff --git a/net/socket/server_socket.cc b/net/socket/server_socket.cc
index 15a87c160225db0de1a8073f72a7b8d7cd0a407e..f2c2383ab585221b4c892c29dba230c8955e5de5 100644
--- a/net/socket/server_socket.cc
+++ b/net/socket/server_socket.cc
@@ -20,7 +20,7 @@ int ServerSocket::ListenWithAddressAndPort(const std::string& address_string,
uint16_t port,
int backlog) {
IPAddress ip_address;
- if (!IPAddress::FromIPLiteral(address_string, &ip_address)) {
+ if (!ip_address.AssignFromIPLiteral(address_string)) {
return ERR_ADDRESS_INVALID;
}
« net/base/ip_address_unittest.cc ('K') | « net/http/http_transaction_test_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698