diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 15:26:13 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 15:26:13 +0000 |
commit | 94e2bbe39fe667dd072755c0310fe42f73e0bb66 (patch) | |
tree | a7ecb732c9cfabad2332dda3827c18ca7ae83bb6 /net/ocsp | |
parent | d6effdd6a54173c0e11240fb753cc167f2499b34 (diff) | |
download | chromium_src-94e2bbe39fe667dd072755c0310fe42f73e0bb66.zip chromium_src-94e2bbe39fe667dd072755c0310fe42f73e0bb66.tar.gz chromium_src-94e2bbe39fe667dd072755c0310fe42f73e0bb66.tar.bz2 |
Added URLRequestContext to constructor for URLRequest.
Previously, the context was set using the member function set_context.
Note that the context for a URLRequest is not allowed to be null.
BUG=81979
TEST=None
TBR=ajwong,brettw,vitalybuka,sky
Review URL: https://chromiumcodereview.appspot.com/10559036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/ocsp')
-rw-r--r-- | net/ocsp/nss_ocsp.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ocsp/nss_ocsp.cc b/net/ocsp/nss_ocsp.cc index 80f9db0..23c00d0 100644 --- a/net/ocsp/nss_ocsp.cc +++ b/net/ocsp/nss_ocsp.cc @@ -366,8 +366,7 @@ class OCSPRequestSession g_ocsp_io_loop.Get().AddRequest(this); } - request_ = new net::URLRequest(url_, this); - request_->set_context(url_request_context); + request_ = new net::URLRequest(url_, this, url_request_context); // To meet the privacy requirements of incognito mode. request_->set_load_flags( net::LOAD_DISABLE_CACHE | net::LOAD_DO_NOT_SAVE_COOKIES | |