summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 23:51:32 +0000
committerstoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-08 23:51:32 +0000
commitd09f7b8c6658dce22559f9264cea1218f1d507c8 (patch)
tree945dc8c6fee83b1b95d1d27f74adcf151d9501e8
parent4d91e2fea8f51b76679542893668e19fc274b287 (diff)
downloadchromium_src-d09f7b8c6658dce22559f9264cea1218f1d507c8.zip
chromium_src-d09f7b8c6658dce22559f9264cea1218f1d507c8.tar.gz
chromium_src-d09f7b8c6658dce22559f9264cea1218f1d507c8.tar.bz2
Avoid unregistering automation job twice.
Review URL: http://codereview.chromium.org/672016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40968 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/automation/url_request_automation_job.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/automation/url_request_automation_job.cc b/chrome/browser/automation/url_request_automation_job.cc
index d6ebda3..8e8fd32 100644
--- a/chrome/browser/automation/url_request_automation_job.cc
+++ b/chrome/browser/automation/url_request_automation_job.cc
@@ -144,11 +144,6 @@ void URLRequestAutomationJob::Kill() {
if (!is_pending()) {
message_filter_->Send(new AutomationMsg_RequestEnd(0, tab_, id_,
URLRequestStatus(URLRequestStatus::CANCELED, net::ERR_ABORTED)));
- } else {
- // If this is a pending job, then register it from the message filter to
- // ensure that it is not serviced when the external host connects to the
- // corresponding external tab.
- message_filter_->UnRegisterRequest(this);
}
}
DisconnectFromMessageFilter();