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

Unified Diff: extensions/renderer/messaging_bindings.cc

Issue 2436893002: [Extensions] Convert some callers of ModuleSystem::CallModuleMethod (Closed)
Patch Set: Created 4 years, 2 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/module_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/messaging_bindings.cc
diff --git a/extensions/renderer/messaging_bindings.cc b/extensions/renderer/messaging_bindings.cc
index a68dcb70cd938c4fec5d7dfc6eb4c353030f37c5..c56fdeb697dc43aac95984b6e6b65ad2a652eb79 100644
--- a/extensions/renderer/messaging_bindings.cc
+++ b/extensions/renderer/messaging_bindings.cc
@@ -213,7 +213,7 @@ void DeliverMessageToScriptContext(const Message& message,
}
}
- script_context->module_system()->CallModuleMethod(
+ script_context->module_system()->CallModuleMethodSafe(
"messaging", "dispatchOnMessage", &arguments);
}
@@ -240,7 +240,7 @@ void DispatchOnDisconnectToScriptContext(int global_port_id,
arguments.push_back(v8::Null(isolate));
}
- script_context->module_system()->CallModuleMethod(
+ script_context->module_system()->CallModuleMethodSafe(
"messaging", "dispatchOnDisconnect", &arguments);
}
« no previous file with comments | « extensions/renderer/dispatcher.cc ('k') | extensions/renderer/module_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698