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

Unified Diff: net/cert/mock_cert_verifier.cc

Issue 1226673003: Move MatchPattern to its own header and the base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/base/host_mapping_rules.cc ('k') | net/dns/mock_host_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/mock_cert_verifier.cc
diff --git a/net/cert/mock_cert_verifier.cc b/net/cert/mock_cert_verifier.cc
index ba89b7137fb3a6d51d5cc1d7a891e42368cd0fee..6ee23d6483c1c885cfaf9036d15af117666145f7 100644
--- a/net/cert/mock_cert_verifier.cc
+++ b/net/cert/mock_cert_verifier.cc
@@ -5,6 +5,7 @@
#include "net/cert/mock_cert_verifier.h"
#include "base/memory/ref_counted.h"
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
#include "net/base/net_errors.h"
#include "net/cert/cert_status_flags.h"
@@ -50,7 +51,7 @@ int MockCertVerifier::Verify(X509Certificate* cert,
// Check just the server cert. Intermediates will be ignored.
if (!it->cert->Equals(cert))
continue;
- if (!MatchPattern(hostname, it->hostname))
+ if (!base::MatchPattern(hostname, it->hostname))
continue;
*verify_result = it->result;
return it->rv;
« no previous file with comments | « net/base/host_mapping_rules.cc ('k') | net/dns/mock_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698