Linux: Fix "No URLRequestContext for NSS HTTP handler" error (issue #1490).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1978 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2015-01-20 23:57:30 +00:00
parent c71cae325f
commit 0d084af123
1 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,10 @@
#include "net/url_request/url_request_job_factory_impl.h" #include "net/url_request/url_request_job_factory_impl.h"
#include "net/url_request/url_request_job_manager.h" #include "net/url_request/url_request_job_manager.h"
#if defined(USE_NSS)
#include "net/ocsp/nss_ocsp.h"
#endif
using content::BrowserThread; using content::BrowserThread;
#if defined(OS_WIN) #if defined(OS_WIN)
@ -247,6 +251,10 @@ net::URLRequestContext* CefURLRequestContextGetter::GetURLRequestContext() {
request_interceptors_.weak_clear(); request_interceptors_.weak_clear();
storage_->set_job_factory(top_job_factory.release()); storage_->set_job_factory(top_job_factory.release());
#if defined(USE_NSS)
net::SetURLRequestContextForNSSHttpIO(url_request_context_.get());
#endif
} }
return url_request_context_.get(); return url_request_context_.get();