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

Unified Diff: ppapi/cpp/private/net_address_private.cc

Issue 9398003: Change PPB_NetAddress_Private.GetFamily to return a PP_AddressFamily_Private value instead of uint1… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
Index: ppapi/cpp/private/net_address_private.cc
diff --git a/ppapi/cpp/private/net_address_private.cc b/ppapi/cpp/private/net_address_private.cc
index 1973012408e3f2dcacf35c67bed9a9a38ead6d6e..01352ddc3eb7cc22e9a7668fe4a8162ff645adb9 100644
--- a/ppapi/cpp/private/net_address_private.cc
+++ b/ppapi/cpp/private/net_address_private.cc
@@ -8,7 +8,6 @@
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/module_impl.h"
#include "ppapi/cpp/var.h"
-#include "ppapi/c/private/ppb_net_address_private.h"
namespace pp {
@@ -82,9 +81,10 @@ void NetAddressPrivate::GetAnyAddress(bool is_ipv6,
}
// static
-uint16_t NetAddressPrivate::GetFamily(const PP_NetAddress_Private& addr) {
+PP_NetAddressFamily_Private NetAddressPrivate::GetFamily(
+ const PP_NetAddress_Private& addr) {
if (!has_interface<PPB_NetAddress_Private>())
- return 0;
+ return PP_NETADDRESSFAMILY_UNSPECIFIED;
return get_interface<PPB_NetAddress_Private>()->GetFamily(&addr);
}

Powered by Google App Engine
This is Rietveld 408576698