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

Unified Diff: net/cert/x509_util_android.cc

Issue 1476173006: Use ContextUtils to get the app context in X509Util. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/java/src/org/chromium/net/X509Util.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_util_android.cc
diff --git a/net/cert/x509_util_android.cc b/net/cert/x509_util_android.cc
index 447853e0980cba69ee77aae0d45705aaf1e57b04..ee47845f57e71f2c6eac2b03b87b0ee867b12788 100644
--- a/net/cert/x509_util_android.cc
+++ b/net/cert/x509_util_android.cc
@@ -27,16 +27,6 @@ void RecordCertVerifyCapabilitiesHistogram(JNIEnv* env,
}
}
-ScopedJavaLocalRef<jobject> GetApplicationContext(
- JNIEnv* env,
- const JavaParamRef<jclass>& clazz) {
- ScopedJavaLocalRef<jobject> r;
- // Must use Reset to force creation of a new local ref, instead of trying to
- // adopt the global-ref'ed jobject as a local ref as the constructor would.
- r.Reset(env, base::android::GetApplicationContext());
- return r;
-}
-
bool RegisterX509Util(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « net/android/java/src/org/chromium/net/X509Util.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698