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

Unified Diff: webrtc/sdk/android/src/jni/peerconnection_jni.cc

Issue 2731813002: Add the option to disable IPv6 ICE candidates on WiFi (Closed)
Patch Set: Fix the rtc_unittests Created 3 years, 9 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 | « webrtc/sdk/android/api/org/webrtc/PeerConnection.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/src/jni/peerconnection_jni.cc
diff --git a/webrtc/sdk/android/src/jni/peerconnection_jni.cc b/webrtc/sdk/android/src/jni/peerconnection_jni.cc
index dfc109046317b721dad4f35b613500ffa327d796..e28641a54dbd790b2c7bea224ba92c8da5efba01 100644
--- a/webrtc/sdk/android/src/jni/peerconnection_jni.cc
+++ b/webrtc/sdk/android/src/jni/peerconnection_jni.cc
@@ -1796,6 +1796,9 @@ static void JavaRTCConfigurationToJsepRTCConfiguration(
jclass j_integer_class = jni->FindClass("java/lang/Integer");
jmethodID int_value_id = GetMethodID(jni, j_integer_class, "intValue", "()I");
+ jfieldID j_disable_ipv6_on_wifi_id =
+ GetFieldID(jni, j_rtc_config_class, "disableIPv6OnWifi", "Z");
+
rtc_config->type =
JavaIceTransportsTypeToNativeType(jni, j_ice_transports_type);
rtc_config->bundle_policy =
@@ -1832,6 +1835,8 @@ static void JavaRTCConfigurationToJsepRTCConfiguration(
rtc_config->ice_check_min_interval =
rtc::Optional<int>(ice_check_min_interval_value);
}
+ rtc_config->disable_ipv6_on_wifi =
+ GetBooleanField(jni, j_rtc_config, j_disable_ipv6_on_wifi_id);
}
JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)(
« no previous file with comments | « webrtc/sdk/android/api/org/webrtc/PeerConnection.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698