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

Unified Diff: net/android/network_library.cc

Issue 2363653002: Cleanup unreachable cert adding code (Closed)
Patch Set: Rebased Created 4 years, 2 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 | « net/android/network_library.h ('k') | net/base/mime_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/network_library.cc
diff --git a/net/android/network_library.cc b/net/android/network_library.cc
index 54847e08df0b3ad1e2ae1b27b55dcc0cfeb4bef7..939319cd0b2dcf624bdde5674551a12ea65406be 100644
--- a/net/android/network_library.cc
+++ b/net/android/network_library.cc
@@ -79,22 +79,6 @@ bool StoreKeyPair(const uint8_t* public_key,
return ret;
}
-void StoreCertificate(net::CertificateMimeType cert_type,
- const void* data,
- size_t data_len) {
- JNIEnv* env = AttachCurrentThread();
- ScopedJavaLocalRef<jbyteArray> data_array =
- ToJavaByteArray(env, reinterpret_cast<const uint8_t*>(data), data_len);
- jboolean ret = Java_AndroidNetworkLibrary_storeCertificate(
- env, GetApplicationContext(), cert_type, data_array);
- LOG_IF(WARNING, !ret) <<
- "Call to Java_AndroidNetworkLibrary_storeCertificate"
- " failed";
- // Intentionally do not return 'ret', there is little the caller can
- // do in case of failure (the CertInstaller itself will deal with
- // incorrect data and display the appropriate toast).
-}
-
bool HaveOnlyLoopbackAddresses() {
JNIEnv* env = AttachCurrentThread();
return Java_AndroidNetworkLibrary_haveOnlyLoopbackAddresses(env);
« no previous file with comments | « net/android/network_library.h ('k') | net/base/mime_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698