summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/extension_port_container.cc
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 23:44:00 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 23:44:00 +0000
commit6c1dcaf1ffd9aeab4dc2ac7a3de34429d34a33fb (patch)
tree0d0593d0279a15c7aaf870136624d5750645a8ac /chrome/browser/automation/extension_port_container.cc
parent05cb696a16d7d42a2e7c1c88238038acfb0b1ad3 (diff)
downloadchromium_src-6c1dcaf1ffd9aeab4dc2ac7a3de34429d34a33fb.zip
chromium_src-6c1dcaf1ffd9aeab4dc2ac7a3de34429d34a33fb.tar.gz
chromium_src-6c1dcaf1ffd9aeab4dc2ac7a3de34429d34a33fb.tar.bz2
Add some debugging junk to ExtensionMessageService to track down a crash.
BUG=21201 TEST=no Review URL: http://codereview.chromium.org/256029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/extension_port_container.cc')
-rw-r--r--chrome/browser/automation/extension_port_container.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/automation/extension_port_container.cc b/chrome/browser/automation/extension_port_container.cc
index 43ace0f..11e0f42 100644
--- a/chrome/browser/automation/extension_port_container.cc
+++ b/chrome/browser/automation/extension_port_container.cc
@@ -8,13 +8,14 @@
#include "base/json_reader.h"
#include "base/json_writer.h"
#include "base/values.h"
-#include "chrome/common/render_messages.h"
#include "chrome/browser/automation/automation_provider.h"
#include "chrome/browser/automation/extension_automation_constants.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/extensions/extension_message_service.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/renderer_host/render_view_host.h"
+#include "chrome/common/notification_service.h"
+#include "chrome/common/render_messages.h"
#include "chrome/test/automation/automation_messages.h"
// TODO(siggi): Find a more structured way to read and write JSON messages.
@@ -34,6 +35,11 @@ ExtensionPortContainer::~ExtensionPortContainer() {
if (port_id_ != -1)
service_->CloseChannel(port_id_);
+
+ NotificationService::current()->Notify(
+ NotificationType::EXTENSION_PORT_DELETED_DEBUG,
+ Source<IPC::Message::Sender>(this),
+ NotificationService::NoDetails());
}
bool ExtensionPortContainer::PostResponseToExternalPort(