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

Unified Diff: net/android/java/src/org/chromium/net/X509Util.java

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 | « no previous file | net/cert/x509_util_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/java/src/org/chromium/net/X509Util.java
diff --git a/net/android/java/src/org/chromium/net/X509Util.java b/net/android/java/src/org/chromium/net/X509Util.java
index 9106386f5b5736b0637e546abb70e1a014e430e6..8059820f366d20b0926de5a9c8ccd41869f73d61 100644
--- a/net/android/java/src/org/chromium/net/X509Util.java
+++ b/net/android/java/src/org/chromium/net/X509Util.java
@@ -15,6 +15,7 @@ import android.security.KeyChain;
import android.util.Log;
import android.util.Pair;
+import org.chromium.base.ContextUtils;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.SuppressFBWarnings;
@@ -240,7 +241,7 @@ public class X509Util {
}
if (!sDisableNativeCodeForTest && sTrustStorageListener == null) {
sTrustStorageListener = new TrustStorageListener();
- nativeGetApplicationContext().registerReceiver(
+ ContextUtils.getApplicationContext().registerReceiver(
sTrustStorageListener, new IntentFilter(KeyChain.ACTION_STORAGE_CHANGED));
}
}
@@ -530,9 +531,4 @@ public class X509Util {
private static native void nativeRecordCertVerifyCapabilitiesHistogram(
boolean foundSystemTrustRoots);
- /**
- * Returns the application context.
- */
- private static native Context nativeGetApplicationContext();
-
}
« no previous file with comments | « no previous file | net/cert/x509_util_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698