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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 1227943002: Allow browser tests to use a MockCertVerifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move factory-setter to ProfileIOData to work with ChromeOS Created 5 years, 4 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 | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | net/cert/cert_verifier.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 3f9dbafc7af6feff544a813cdbe6fcc61d5cfd6a..c9e96304a8c79e706d0d7c1a94073719f223350d 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -60,6 +60,7 @@ class InfoMap;
namespace net {
class CertificateReportSender;
class CertVerifier;
+class CertVerifierFactory;
class ChannelIDService;
class CookieStore;
class FraudulentCertificateReporter;
@@ -109,6 +110,11 @@ class ProfileIOData {
net::URLRequestJobFactoryImpl* job_factory,
content::ProtocolHandlerMap* protocol_handlers);
+ // Sets a global CertVerifierFactory; tests can use this to create
+ // per-profile CertVerifiers.
+ static void SetCertVerifierFactoryForTesting(
+ net::CertVerifierFactory* cert_verifier_factory);
+
// Called by Profile.
content::ResourceContext* GetResourceContext() const;
@@ -551,10 +557,10 @@ class ProfileIOData {
// Set to |cert_verifier_| if it references a PolicyCertVerifier. In that
// case, the verifier is owned by |cert_verifier_|. Otherwise, set to NULL.
mutable policy::PolicyCertVerifier* policy_cert_verifier_;
- mutable scoped_ptr<net::CertVerifier> cert_verifier_;
mutable std::string username_hash_;
mutable bool use_system_key_slot_;
#endif
+ mutable scoped_ptr<net::CertVerifier> cert_verifier_;
Ryan Sleevi 2015/08/04 08:28:44 Since policy_cert_verifier_ points to this (line 5
estark 2015/08/04 17:44:38 Done.
mutable scoped_ptr<net::TransportSecurityPersister>
transport_security_persister_;
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | net/cert/cert_verifier.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698