diff options
author | mirandac@google.com <mirandac@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 14:47:37 +0000 |
---|---|---|
committer | mirandac@google.com <mirandac@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 14:47:37 +0000 |
commit | 18e9d8cab7ee5c40d69e5f8b5943472fc6432f72 (patch) | |
tree | 39d03f9162f2708f532b080ed369d6a53a3f54ac | |
parent | a35cb61cb03dcb148067d2d4634c37dbf9342992 (diff) | |
download | chromium_src-18e9d8cab7ee5c40d69e5f8b5943472fc6432f72.zip chromium_src-18e9d8cab7ee5c40d69e5f8b5943472fc6432f72.tar.gz chromium_src-18e9d8cab7ee5c40d69e5f8b5943472fc6432f72.tar.bz2 |
Speculative fix for race condition in URLFetcher.
BUG=94184
TEST=no more url fetcher related crashes.
Review URL: http://codereview.chromium.org/7840024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99954 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | content/common/url_fetcher.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content/common/url_fetcher.cc b/content/common/url_fetcher.cc index bb066a8..76b5516 100644 --- a/content/common/url_fetcher.cc +++ b/content/common/url_fetcher.cc @@ -745,7 +745,7 @@ void URLFetcher::Core::RetryOrCompleteUrlFetch() { } else { backoff_delay = base::TimeDelta(); } - + request_context_getter_ = NULL; bool posted = delegate_loop_proxy_->PostTask( FROM_HERE, NewRunnableMethod(this, @@ -755,7 +755,6 @@ void URLFetcher::Core::RetryOrCompleteUrlFetch() { // If the delegate message loop does not exist any more, then the delegate // should be gone too. DCHECK(posted || !delegate_); - request_context_getter_ = NULL; } void URLFetcher::Core::ReadResponse() { |