From 102bec542f642a8a6c0828848c00716bdc1aed6c Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Wed, 13 Oct 2010 11:29:06 +0000 Subject: Add more traces. I think what is happening is that the background page hasn't loaded when the tabUpdated event is sent to the extension, so there is no listener. This should verify that. TBR=aa BUG=57694 TEST=None (this is an attempt to fix a test) Review URL: http://codereview.chromium.org/3783001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62392 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_browser_event_router.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/browser/extensions/extension_browser_event_router.cc') diff --git a/chrome/browser/extensions/extension_browser_event_router.cc b/chrome/browser/extensions/extension_browser_event_router.cc index 80a6309..f94145a 100644 --- a/chrome/browser/extensions/extension_browser_event_router.cc +++ b/chrome/browser/extensions/extension_browser_event_router.cc @@ -70,6 +70,9 @@ static void DispatchEvent(Profile* profile, if (profile->GetExtensionMessageService()) { profile->GetExtensionMessageService()->DispatchEventToRenderers( event_name, json_args, profile, GURL()); + } else { + if (Extension::emit_traces_for_whitelist_extension_test_) + printf("***** ERROR: no profile->GetExtensionMessageService()\n"); } } @@ -390,7 +393,7 @@ void ExtensionBrowserEventRouter::TabUpdated(TabContents* contents, // TODO(finnur): Remove once I have one failed run of this test. if (Extension::emit_traces_for_whitelist_extension_test_) - printf("***** not SENDING TabUpdated\n"); + printf("***** Sending TabUpdated\n"); DispatchEvent(contents->profile(), events::kOnTabUpdated, json_args); } else { -- cgit v1.1