Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Unified Diff: extensions/renderer/extension_helper.cc

Issue 327953002: Make MessagingBindings use ScriptContextSet::ForEach (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ForEach shortcuts Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/messaging_bindings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/extension_helper.cc
diff --git a/extensions/renderer/extension_helper.cc b/extensions/renderer/extension_helper.cc
index a3d4362f4483193f274de0fd37027287b2716ef9..4162dda384075b0e65ceef6514352b1173655a83 100644
--- a/extensions/renderer/extension_helper.cc
+++ b/extensions/renderer/extension_helper.cc
@@ -267,34 +267,26 @@ void ExtensionHelper::OnExtensionDispatchOnConnect(
const base::DictionaryValue& source_tab,
const ExtensionMsg_ExternalConnectionInfo& info,
const std::string& tls_channel_id) {
- MessagingBindings::DispatchOnConnect(
- dispatcher_->script_context_set().GetAll(),
- target_port_id,
- channel_name,
- source_tab,
- info.source_id,
- info.target_id,
- info.source_url,
- tls_channel_id,
- render_view());
+ MessagingBindings::DispatchOnConnect(dispatcher_->script_context_set(),
+ target_port_id,
+ channel_name,
+ source_tab,
+ info,
+ tls_channel_id,
+ render_view());
}
void ExtensionHelper::OnExtensionDeliverMessage(int target_id,
const Message& message) {
- MessagingBindings::DeliverMessage(dispatcher_->script_context_set().GetAll(),
- target_id,
- message,
- render_view());
+ MessagingBindings::DeliverMessage(
+ dispatcher_->script_context_set(), target_id, message, render_view());
}
void ExtensionHelper::OnExtensionDispatchOnDisconnect(
int port_id,
const std::string& error_message) {
MessagingBindings::DispatchOnDisconnect(
- dispatcher_->script_context_set().GetAll(),
- port_id,
- error_message,
- render_view());
+ dispatcher_->script_context_set(), port_id, error_message, render_view());
}
void ExtensionHelper::OnExecuteCode(
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/messaging_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698