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

Unified Diff: webrtc/sdk/android/api/org/webrtc/NetworkMonitor.java

Issue 2697943002: Return "not implemented" error from BindSocketToNetwork properly. (Closed)
Patch Set: Adding CHECK_EXCEPTION Created 3 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
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/api/org/webrtc/NetworkMonitor.java
diff --git a/webrtc/sdk/android/api/org/webrtc/NetworkMonitor.java b/webrtc/sdk/android/api/org/webrtc/NetworkMonitor.java
index 26fefc0a21d654ac80c566837de24ae39c172633..985e34671b66ee84d816662385bdd00c943cee43 100644
--- a/webrtc/sdk/android/api/org/webrtc/NetworkMonitor.java
+++ b/webrtc/sdk/android/api/org/webrtc/NetworkMonitor.java
@@ -114,6 +114,12 @@ public class NetworkMonitor {
nativeNetworkObservers.remove(nativeObserver);
}
+ // Called by the native code to determine if network binding is supported
+ // on this platform.
+ private boolean networkBindingSupported() {
+ return autoDetector != null && autoDetector.supportNetworkCallback();
+ }
+
// Called by the native code to get the Android SDK version.
private static int androidSdkInt() {
return Build.VERSION.SDK_INT;
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/NetworkMonitorAutoDetect.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698