summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_devtools_bridge.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 12:54:10 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 12:54:10 +0000
commit8426c02d403d815745650e6833b82f22050a1bb2 (patch)
tree85dcdd2979e2cf569c045ec589de17de7331f116 /chrome/browser/extensions/extension_devtools_bridge.cc
parent16ca52db210a9c32244308eef74b0f4db01d9666 (diff)
downloadchromium_src-8426c02d403d815745650e6833b82f22050a1bb2.zip
chromium_src-8426c02d403d815745650e6833b82f22050a1bb2.tar.gz
chromium_src-8426c02d403d815745650e6833b82f22050a1bb2.tar.bz2
Add support for restricting broadcasting events to extensions based on host permissions.
BUG=38398 TEST=none Review URL: http://codereview.chromium.org/1095002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_devtools_bridge.cc')
-rw-r--r--chrome/browser/extensions/extension_devtools_bridge.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_devtools_bridge.cc b/chrome/browser/extensions/extension_devtools_bridge.cc
index a6399d8..d452c04 100644
--- a/chrome/browser/extensions/extension_devtools_bridge.cc
+++ b/chrome/browser/extensions/extension_devtools_bridge.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -65,7 +65,7 @@ void ExtensionDevToolsBridge::InspectedTabClosing() {
// event in extensions.
std::string json("[{}]");
profile_->GetExtensionMessageService()->DispatchEventToRenderers(
- on_tab_close_event_name_, json, profile_->IsOffTheRecord());
+ on_tab_close_event_name_, json, profile_->IsOffTheRecord(), GURL());
// This may result in this object being destroyed.
extension_devtools_manager_->BridgeClosingForTab(tab_id_);
@@ -88,7 +88,7 @@ void ExtensionDevToolsBridge::OnRpcMessage(const DevToolsMessageData& data) {
&& data.method_name == kApuPageEventMessageName) {
std::string json = StringPrintf("[%s]", data.arguments[0].c_str());
profile_->GetExtensionMessageService()->DispatchEventToRenderers(
- on_page_event_name_, json, profile_->IsOffTheRecord());
+ on_page_event_name_, json, profile_->IsOffTheRecord(), GURL());
}
}