Skip to content

Commit

Permalink
browser: create cert verifier when browser context is created
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Apr 3, 2016
1 parent e5aa712 commit 769ba02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions atom/browser/atom_browser_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ std::string RemoveWhitespace(const std::string& str) {
AtomBrowserContext::AtomBrowserContext(const std::string& partition,
bool in_memory)
: brightray::BrowserContext(partition, in_memory),
cert_verifier_(nullptr),
cert_verifier_(new AtomCertVerifier),
job_factory_(new AtomURLRequestJobFactory),
network_delegate_(new AtomNetworkDelegate),
allow_ntlm_everywhere_(false) {
Expand Down Expand Up @@ -178,8 +178,6 @@ content::PermissionManager* AtomBrowserContext::GetPermissionManager() {
}

scoped_ptr<net::CertVerifier> AtomBrowserContext::CreateCertVerifier() {
DCHECK(!cert_verifier_);
cert_verifier_ = new AtomCertVerifier;
return make_scoped_ptr(cert_verifier_);
}

Expand Down

0 comments on commit 769ba02

Please sign in to comment.