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

Unified Diff: talk/app/webrtc/java/jni/peerconnection_jni.cc

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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: talk/app/webrtc/java/jni/peerconnection_jni.cc
diff --git a/talk/app/webrtc/java/jni/peerconnection_jni.cc b/talk/app/webrtc/java/jni/peerconnection_jni.cc
index eea5fbd8418910bf988db53ba7efc59036c92f31..99a550a3175ed7e0fd23019c21b093143bc3dd2a 100644
--- a/talk/app/webrtc/java/jni/peerconnection_jni.cc
+++ b/talk/app/webrtc/java/jni/peerconnection_jni.cc
@@ -1394,18 +1394,6 @@ JOW(void, PeerConnectionFactory_nativeSetVideoHwAccelerationOptions)(
#endif
}
-static std::string
-GetJavaEnumName(JNIEnv* jni, const std::string& className, jobject j_enum) {
- jclass enumClass = FindClass(jni, className.c_str());
- jmethodID nameMethod =
- GetMethodID(jni, enumClass, "name", "()Ljava/lang/String;");
- jstring name =
- reinterpret_cast<jstring>(jni->CallObjectMethod(j_enum, nameMethod));
- CHECK_EXCEPTION(jni) << "error during CallObjectMethod for "
- << className << ".name";
- return JavaToStdString(jni, name);
-}
-
static PeerConnectionInterface::IceTransportsType
JavaIceTransportsTypeToNativeType(JNIEnv* jni, jobject j_ice_transports_type) {
std::string enum_name = GetJavaEnumName(

Powered by Google App Engine
This is Rietveld 408576698