summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_messages_unittest.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 13:18:10 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 13:18:10 +0000
commite3200680c93abf0299f318fefb37a9efee770bcd (patch)
tree96e850da993f1cc884d164cc3a525a43ac1c6646 /chrome/browser/extensions/extension_messages_unittest.cc
parent8426c02d403d815745650e6833b82f22050a1bb2 (diff)
downloadchromium_src-e3200680c93abf0299f318fefb37a9efee770bcd.zip
chromium_src-e3200680c93abf0299f318fefb37a9efee770bcd.tar.gz
chromium_src-e3200680c93abf0299f318fefb37a9efee770bcd.tar.bz2
Revert 44348 - Add support for restricting broadcasting events to extensions based on host permissions.
BUG=38398 TEST=none Review URL: http://codereview.chromium.org/1095002 TBR=jochen@chromium.org Review URL: http://codereview.chromium.org/1575036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_messages_unittest.cc')
-rw-r--r--chrome/browser/extensions/extension_messages_unittest.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extension_messages_unittest.cc b/chrome/browser/extensions/extension_messages_unittest.cc
index b90e92f..5d06654 100644
--- a/chrome/browser/extensions/extension_messages_unittest.cc
+++ b/chrome/browser/extensions/extension_messages_unittest.cc
@@ -18,15 +18,14 @@ static void DispatchOnConnect(int source_port_id, const std::string& name,
args.Set(3, Value::CreateStringValue("")); // extension ID is empty for tests
args.Set(4, Value::CreateStringValue("")); // extension ID is empty for tests
RendererExtensionBindings::Invoke(
- ExtensionMessageService::kDispatchOnConnect, args, NULL, false, GURL());
+ ExtensionMessageService::kDispatchOnConnect, args, NULL, false);
}
static void DispatchOnDisconnect(int source_port_id) {
ListValue args;
args.Set(0, Value::CreateIntegerValue(source_port_id));
RendererExtensionBindings::Invoke(
- ExtensionMessageService::kDispatchOnDisconnect, args, NULL, false,
- GURL());
+ ExtensionMessageService::kDispatchOnDisconnect, args, NULL, false);
}
static void DispatchOnMessage(const std::string& message, int source_port_id) {
@@ -34,7 +33,7 @@ static void DispatchOnMessage(const std::string& message, int source_port_id) {
args.Set(0, Value::CreateStringValue(message));
args.Set(1, Value::CreateIntegerValue(source_port_id));
RendererExtensionBindings::Invoke(
- ExtensionMessageService::kDispatchOnMessage, args, NULL, false, GURL());
+ ExtensionMessageService::kDispatchOnMessage, args, NULL, false);
}
// Tests that the bindings for opening a channel to an extension and sending