REVIEW: setup request context for NSS OCSP only once
This commit is contained in:
parent
e3a56240c9
commit
abe1faea5c
6 changed files with 95 additions and 11 deletions
|
@ -56,10 +56,6 @@
|
|||
#include "storage/browser/quota/special_storage_policy.h"
|
||||
#include "url/url_constants.h"
|
||||
|
||||
#if defined(USE_NSS_CERTS)
|
||||
#include "net/cert_net/nss_ocsp.h"
|
||||
#endif
|
||||
|
||||
using content::BrowserThread;
|
||||
|
||||
namespace brightray {
|
||||
|
@ -158,9 +154,6 @@ URLRequestContextGetter::URLRequestContextGetter(
|
|||
}
|
||||
|
||||
URLRequestContextGetter::~URLRequestContextGetter() {
|
||||
#if defined(USE_NSS_CERTS)
|
||||
net::SetURLRequestContextForNSSHttpIO(NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
net::HostResolver* URLRequestContextGetter::host_resolver() {
|
||||
|
@ -175,10 +168,6 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
|||
auto& command_line = *base::CommandLine::ForCurrentProcess();
|
||||
url_request_context_.reset(new net::URLRequestContext);
|
||||
|
||||
#if defined(USE_NSS_CERTS)
|
||||
net::SetURLRequestContextForNSSHttpIO(url_request_context_.get());
|
||||
#endif
|
||||
|
||||
// --log-net-log
|
||||
if (net_log_) {
|
||||
net_log_->StartLogging();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue