| Index: net/android/network_library.cc
|
| diff --git a/net/android/network_library.cc b/net/android/network_library.cc
|
| index ce5567928b4b4a8110ecc643f4b9e14e9d5cf67f..6a5b592f5e5db81cb1d7c6ffafe3f8146e7b02f4 100644
|
| --- a/net/android/network_library.cc
|
| +++ b/net/android/network_library.cc
|
| @@ -26,11 +26,6 @@ namespace android {
|
| VerifyResult VerifyX509CertChain(const std::vector<std::string>& cert_chain,
|
| const std::string& auth_type) {
|
| JNIEnv* env = AttachCurrentThread();
|
| - if (!env || !g_AndroidNetworkLibrary_verifyServerCertificates) {
|
| - // TODO(bulach): Remove when we initialize the JVM in unit tests.
|
| - LOG(WARNING) << "JNI initialization failed";
|
| - return VERIFY_INVOCATION_ERROR;
|
| - }
|
|
|
| ScopedJavaLocalRef<jobjectArray> chain_byte_array =
|
| ToJavaArrayOfByteArray(env, cert_chain);
|
|
|