diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 01:39:08 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 01:39:08 +0000 |
commit | 2626c3f17207b1b905fe13f0d2c1f9db28f47041 (patch) | |
tree | 37c3fbc55a33a917497980ff4609401bff08fe18 | |
parent | 3280913d013d81fa0a5cfdbfb1efedbbe8dd3a7a (diff) | |
download | chromium_src-2626c3f17207b1b905fe13f0d2c1f9db28f47041.zip chromium_src-2626c3f17207b1b905fe13f0d2c1f9db28f47041.tar.gz chromium_src-2626c3f17207b1b905fe13f0d2c1f9db28f47041.tar.bz2 |
Remove the temporary instrumentation added to track down a crash in URLFetcher.
This is almost a full revert of r31526, except that the two DCHECK(url_request_context_getter_) which I promoted to CHECK()s remain as CHECK()s (since they will be useful to catch similar problems in the future, and are cheap).
BUG=27074
Review URL: http://codereview.chromium.org/434050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33026 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/net/url_fetcher.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/browser/net/url_fetcher.cc b/chrome/browser/net/url_fetcher.cc index 563b5ff..f8707a8 100644 --- a/chrome/browser/net/url_fetcher.cc +++ b/chrome/browser/net/url_fetcher.cc @@ -95,11 +95,6 @@ class URLFetcher::Core // specified by the protection manager, we'll give up. int num_retries_; - // Temporary member variable to test whether requests are being started - // after they have already been cancelled. - // TODO(eroman): Remove this after done investigating 27074. - bool was_cancelled_; - friend class URLFetcher; DISALLOW_COPY_AND_ASSIGN(Core); }; @@ -140,8 +135,7 @@ URLFetcher::Core::Core(URLFetcher* fetcher, buffer_(new net::IOBuffer(kBufferSize)), protect_entry_(URLFetcherProtectManager::GetInstance()->Register( original_url_.host())), - num_retries_(0), - was_cancelled_(false) { + num_retries_(0) { } void URLFetcher::Core::Start() { @@ -205,9 +199,8 @@ void URLFetcher::Core::OnReadCompleted(URLRequest* request, int bytes_read) { void URLFetcher::Core::StartURLRequest() { DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); - CHECK(!was_cancelled_); CHECK(request_context_getter_); - CHECK(!request_); + DCHECK(!request_); request_ = new URLRequest(original_url_, this); int flags = request_->load_flags() | load_flags_; @@ -260,7 +253,6 @@ void URLFetcher::Core::CancelURLRequest() { // delete the object, but we cannot delay the destruction of the request // context. request_context_getter_ = NULL; - was_cancelled_ = true; } void URLFetcher::Core::OnCompletedURLRequest(const URLRequestStatus& status) { |