Index: net/android/network_change_notifier_android.cc |
diff --git a/net/android/network_change_notifier_android.cc b/net/android/network_change_notifier_android.cc |
index eac6589a8ef23ce88c33298923c733f61d570806..0654ca7bea79516c4965afbc5da365e41939e6df 100644 |
--- a/net/android/network_change_notifier_android.cc |
+++ b/net/android/network_change_notifier_android.cc |
@@ -173,9 +173,14 @@ NetworkChangeNotifierAndroid::GetCurrentNetworkConnectionType( |
return delegate_->GetNetworkConnectionType(network); |
} |
-NetworkChangeNotifier::NetworkHandle |
-NetworkChangeNotifierAndroid::GetCurrentDefaultNetwork() const { |
- return delegate_->GetCurrentDefaultNetwork(); |
+int NetworkChangeNotifierAndroid::GetCurrentDefaultNetwork( |
+ NetworkChangeNotifier::NetworkHandle* network) const { |
+ if (base::android::BuildInfo::GetInstance()->sdk_int() < |
+ base::android::SDK_VERSION_LOLLIPOP) { |
+ return ERR_NOT_IMPLEMENTED; |
+ } |
+ *network = delegate_->GetCurrentDefaultNetwork(); |
+ return OK; |
} |
void NetworkChangeNotifierAndroid::OnConnectionTypeChanged() { |