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

Unified Diff: net/cert/cert_verify_proc_unittest.cc

Issue 228293012: Detect user-installed roots more efficiently on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rsleevi comments Created 6 years, 7 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/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/cert_verify_proc_unittest.cc
diff --git a/net/cert/cert_verify_proc_unittest.cc b/net/cert/cert_verify_proc_unittest.cc
index 8f5156bc8631eafacd1f33ef9c2a1138ec672e44..6567d1656fccc9e47c5f7435712dc39b27b26ae4 100644
--- a/net/cert/cert_verify_proc_unittest.cc
+++ b/net/cert/cert_verify_proc_unittest.cc
@@ -97,8 +97,10 @@ bool SupportsReturningVerifiedChain() {
bool SupportsDetectingKnownRoots() {
#if defined(OS_ANDROID)
- // http://crbug.com/361166
- return false;
+ // Before API level 17, Android does not expose the APIs necessary to get at
+ // the verified certificate chain and detect known roots.
+ if (base::android::BuildInfo::GetInstance()->sdk_int() < 17)
+ return false;
#endif
return true;
}
« 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