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

Unified Diff: extensions/renderer/extension_helper.cc

Issue 2423043003: [Extensions] Convert some callers of ScriptContext::CallFunction (Closed)
Patch Set: d'oh 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 | « no previous file | extensions/renderer/json_schema_unittest.cc » ('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 f1371fb27c3824a0db41dfc53d49fdb613497510..461ac3ee3a27e61e5b8ddf282fd64cec745fb85e 100644
--- a/extensions/renderer/extension_helper.cc
+++ b/extensions/renderer/extension_helper.cc
@@ -73,8 +73,8 @@ void ExtensionHelper::OnAppWindowClosed() {
dispatcher_->script_context_set().GetByV8Context(v8_context);
if (!script_context)
return;
- script_context->module_system()->CallModuleMethod("app.window",
- "onAppWindowClosed");
+ script_context->module_system()->CallModuleMethodSafe("app.window",
+ "onAppWindowClosed");
}
} // namespace extensions
« no previous file with comments | « no previous file | extensions/renderer/json_schema_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698