From b7a3612e580b04b6b0d40291565cd834dc16242e Mon Sep 17 00:00:00 2001 From: "stoyan@chromium.org" Date: Fri, 30 Apr 2010 15:35:08 +0000 Subject: Ignore EndRequest() for a urlmon urlrequest from Chrome, if terminate_bind (i.e. DownloadInHost) request is already received. BUG=42104 Review URL: http://codereview.chromium.org/1705018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46072 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome_frame/urlmon_url_request.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome_frame') diff --git a/chrome_frame/urlmon_url_request.cc b/chrome_frame/urlmon_url_request.cc index fb937bf..961b7da 100644 --- a/chrome_frame/urlmon_url_request.cc +++ b/chrome_frame/urlmon_url_request.cc @@ -57,6 +57,11 @@ void UrlmonUrlRequest::Stop() { DCHECK((status_.get_state() != Status::DONE) == (binding_ != NULL)); Status::State state = status_.get_state(); delegate_ = NULL; + + // If DownloadInHost is already requested, we will quit soon anyway. + if (terminate_requested()) + return; + switch (state) { case Status::WORKING: status_.Cancel(); -- cgit v1.1