And also revert https://codereview.webrtc.org/2888093005/ (Chromium roll) which has a dependency on 2889183002 BUG=webrtc:7707 Review-Url: https://codereview.webrtc.org/2897423002 Cr-Commit-Position: refs/heads/master@{#18263}
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
// Since we use Chromes build system for creating the gtest binary, this should
|
||||
// be fine.
|
||||
RTC_PUSH_IGNORING_WUNDEF()
|
||||
#include "base/android/context_utils.h"
|
||||
#include "base/android/jni_android.h"
|
||||
RTC_POP_IGNORING_WUNDEF()
|
||||
|
||||
@ -40,10 +41,11 @@ void EnsureInitializedOnce() {
|
||||
JNIEnv* jni = ::base::android::AttachCurrentThread();
|
||||
JavaVM* jvm = NULL;
|
||||
RTC_CHECK_EQ(0, jni->GetJavaVM(&jvm));
|
||||
jobject context = ::base::android::GetApplicationContext().obj();
|
||||
|
||||
RTC_CHECK(rtc::InitializeSSL()) << "Failed to InitializeSSL()";
|
||||
|
||||
webrtc::JVM::Initialize(jvm);
|
||||
webrtc::JVM::Initialize(jvm, context);
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
Reference in New Issue
Block a user