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

Unified Diff: extensions/renderer/display_source_custom_bindings.cc

Issue 2426393003: [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 | « chrome/renderer/extensions/webstore_bindings.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/display_source_custom_bindings.cc
diff --git a/extensions/renderer/display_source_custom_bindings.cc b/extensions/renderer/display_source_custom_bindings.cc
index c2772ebb0268c85471c3056fc2813615bb9da846..73f0c122eccd41dae48661915f2bec25836c85be 100644
--- a/extensions/renderer/display_source_custom_bindings.cc
+++ b/extensions/renderer/display_source_custom_bindings.cc
@@ -232,8 +232,8 @@ void DisplaySourceCustomBindings::OnCallCompleted(
else
callback_args[1] = v8::String::NewFromUtf8(isolate, error_message.c_str());
- module_system->CallModuleMethod("displaySource", "callCompletionCallback", 2,
- callback_args);
+ module_system->CallModuleMethodSafe("displaySource", "callCompletionCallback",
+ 2, callback_args);
}
void DisplaySourceCustomBindings::OnSessionStarted(
« no previous file with comments | « chrome/renderer/extensions/webstore_bindings.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698