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

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

Issue 1535943004: Multi-networking with Android L. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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 | « talk/app/webrtc/java/jni/jni_helpers.cc ('k') | webrtc/base/asyncpacketsocket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c5de9654743e7d4e39eb6ddd1bbaaf8fe87ae5cb..76ef3fcc0d2b84fc9f5d1ebdea7316710bf499b1 100644
--- a/talk/app/webrtc/java/jni/peerconnection_jni.cc
+++ b/talk/app/webrtc/java/jni/peerconnection_jni.cc
@@ -1411,18 +1411,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(
« no previous file with comments | « talk/app/webrtc/java/jni/jni_helpers.cc ('k') | webrtc/base/asyncpacketsocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698