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

Unified Diff: chrome/browser/extensions/api/socket/socket_api.cc

Issue 47443002: Added prefixLength to the items in the result of a getNetworkList. This allows the broadcast addres… (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | chrome/common/extensions/api/socket.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/socket/socket_api.cc
diff --git a/chrome/browser/extensions/api/socket/socket_api.cc b/chrome/browser/extensions/api/socket/socket_api.cc
index c59d97a96e19528d93899ff041fb8b8a4270f56d..01dd810e97a53bac4b66a307bbe671dab10d5479 100644
--- a/chrome/browser/extensions/api/socket/socket_api.cc
+++ b/chrome/browser/extensions/api/socket/socket_api.cc
@@ -691,6 +691,7 @@ void SocketGetNetworkListFunction::SendResponseOnUIThread(
make_linked_ptr(new api::socket::NetworkInterface);
info->name = i->name;
info->address = net::IPAddressToString(i->address);
+ info->prefix_length = i->network_prefix;
create_arg.push_back(info);
}
« no previous file with comments | « no previous file | chrome/common/extensions/api/socket.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698