summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/extension_port_container.cc
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 22:56:58 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 22:56:58 +0000
commit1f70f0ca51d1c61d3a775507b2b69dcdf60e77df (patch)
tree41659daa24b3e9af8996b2782dffead89fdcc63c /chrome/browser/automation/extension_port_container.cc
parent11de3e98153ad8dcb9e6628e527f7bfb2ca0a8ed (diff)
downloadchromium_src-1f70f0ca51d1c61d3a775507b2b69dcdf60e77df.zip
chromium_src-1f70f0ca51d1c61d3a775507b2b69dcdf60e77df.tar.gz
chromium_src-1f70f0ca51d1c61d3a775507b2b69dcdf60e77df.tar.bz2
Send port-closed notification when a frame with ports unloads.
Also add onLoad and onUnload chrome Event to our bindings, so we can add listeners to these events without needing a DOM. These don't hook into the window "unload" event, so we no longer prevent Chrome's sudden termination of tabs on shutdown. BUG=12686 TEST=no Review URL: http://codereview.chromium.org/125280 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/extension_port_container.cc')
-rw-r--r--chrome/browser/automation/extension_port_container.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/automation/extension_port_container.cc b/chrome/browser/automation/extension_port_container.cc
index 15c2c8e..581da75 100644
--- a/chrome/browser/automation/extension_port_container.cc
+++ b/chrome/browser/automation/extension_port_container.cc
@@ -34,7 +34,7 @@ ExtensionPortContainer::~ExtensionPortContainer() {
DCHECK_EQ(MessageLoop::current()->type(), MessageLoop::TYPE_UI);
if (port_id_ != -1)
- service_->CloseAutomationChannel(port_id_);
+ service_->CloseChannel(port_id_);
}
bool ExtensionPortContainer::PostResponseToExternalPort(