diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 21:17:49 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-01 21:17:49 +0000 |
commit | 4b5d64ff3d7d95247ed4f078d8bf585a1726794d (patch) | |
tree | 050a523a5bbccf28ade0814b38bcc9bee187cd04 /chrome/test | |
parent | 912445b6db66140aecb3bc822075a6e9bb9d7e33 (diff) | |
download | chromium_src-4b5d64ff3d7d95247ed4f078d8bf585a1726794d.zip chromium_src-4b5d64ff3d7d95247ed4f078d8bf585a1726794d.tar.gz chromium_src-4b5d64ff3d7d95247ed4f078d8bf585a1726794d.tar.bz2 |
Pass down the opener tab when a message channel is opened to an extension.
Also did a bunch of cleanup of ExtensionMessageService. I converted it to
primarily UI-thread habitation, with one function that needs to be on the IO
thread so it can handle a synchronous IPC message.
TEST=N/A
Review URL: http://codereview.chromium.org/99261
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/data/extensions/good/extension1/1/toolstrip1.html | 2 | ||||
-rw-r--r-- | chrome/test/render_view_test.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/test/data/extensions/good/extension1/1/toolstrip1.html b/chrome/test/data/extensions/good/extension1/1/toolstrip1.html index fa244f8..d36de21 100644 --- a/chrome/test/data/extensions/good/extension1/1/toolstrip1.html +++ b/chrome/test/data/extensions/good/extension1/1/toolstrip1.html @@ -22,7 +22,7 @@ body { chromium.onconnect.addListener(function (port) { port.onmessage.addListener(doOnMessage); - port.postMessage('extension onconnect'); + port.postMessage('extension onconnect: ' + port.tab.url); }); function doOnMessage(msg, port) { diff --git a/chrome/test/render_view_test.cc b/chrome/test/render_view_test.cc index 81d7347..583fff6 100644 --- a/chrome/test/render_view_test.cc +++ b/chrome/test/render_view_test.cc @@ -58,7 +58,7 @@ void RenderViewTest::SetUp() { WebKit::registerExtension(JsonSchemaJsV8Extension::Get()); WebKit::registerExtension(EventBindings::Get()); WebKit::registerExtension(ExtensionProcessBindings::Get()); - WebKit::registerExtension(RendererExtensionBindings::Get(&render_thread_)); + WebKit::registerExtension(RendererExtensionBindings::Get()); EventBindings::SetRenderThread(&render_thread_); // TODO(aa): Should some of this go to some other inheriting class? |