Index: net/base/network_change_notifier.cc |
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc |
index fb480e9705f2c418b32ca57a2e80888fd9c20aa0..c51eb8752d4c365ccf7c63b5500675817397980d 100644 |
--- a/net/base/network_change_notifier.cc |
+++ b/net/base/network_change_notifier.cc |
@@ -11,6 +11,7 @@ |
#include "base/synchronization/lock.h" |
#include "base/threading/thread_checker.h" |
#include "build/build_config.h" |
+#include "net/base/net_errors.h" |
#include "net/base/net_util.h" |
#include "net/base/network_change_notifier_factory.h" |
#include "net/base/network_interfaces.h" |
@@ -652,11 +653,11 @@ NetworkChangeNotifier::GetNetworkConnectionType(NetworkHandle network) { |
} |
// static |
-NetworkChangeNotifier::NetworkHandle |
-NetworkChangeNotifier::GetDefaultNetwork() { |
+int NetworkChangeNotifier::GetDefaultNetwork( |
+ NetworkChangeNotifier::NetworkHandle* network) { |
return g_network_change_notifier |
- ? g_network_change_notifier->GetCurrentDefaultNetwork() |
- : kInvalidNetworkHandle; |
+ ? g_network_change_notifier->GetCurrentDefaultNetwork(network) |
+ : ERR_FAILED; |
} |
// static |
@@ -989,9 +990,9 @@ NetworkChangeNotifier::GetCurrentNetworkConnectionType( |
return CONNECTION_UNKNOWN; |
} |
-NetworkChangeNotifier::NetworkHandle |
-NetworkChangeNotifier::GetCurrentDefaultNetwork() const { |
- return kInvalidNetworkHandle; |
+int NetworkChangeNotifier::GetCurrentDefaultNetwork( |
+ NetworkChangeNotifier::NetworkHandle* network) const { |
+ return ERR_NOT_IMPLEMENTED; |
} |
// static |