Fix AssertNoURLRequests due to pending proxy connections during shutdown (issue #1037).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1445 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-09-17 08:13:02 +00:00
parent e8c2c80f70
commit f9bed78d56

View File

@ -71,6 +71,11 @@ CefURLRequestContextGetter::CefURLRequestContextGetter(
CefURLRequestContextGetter::~CefURLRequestContextGetter() {
CEF_REQUIRE_IOT();
STLDeleteElements(&url_request_context_proxies_);
// Delete the ProxyService object here so that any pending requests will be
// canceled before the associated URLRequestContext is destroyed in this
// object's destructor.
storage_->set_proxy_service(NULL);
}
net::URLRequestContext* CefURLRequestContextGetter::GetURLRequestContext() {