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

Unified Diff: extensions/renderer/gc_callback.cc

Issue 2403873003: [Extensions] Convert some callers of ScriptContext::CallFunction (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/cast_streaming_native_handler.cc ('k') | extensions/renderer/wake_event_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/gc_callback.cc
diff --git a/extensions/renderer/gc_callback.cc b/extensions/renderer/gc_callback.cc
index 012189791ea23ec00409665861ce95281178015a..b3e471fd26059dc641fbe92c856c5490535e8f96 100644
--- a/extensions/renderer/gc_callback.cc
+++ b/extensions/renderer/gc_callback.cc
@@ -46,7 +46,8 @@ void GCCallback::RunCallback() {
fallback_.Reset();
v8::Isolate* isolate = context_->isolate();
v8::HandleScope handle_scope(isolate);
- context_->CallFunction(v8::Local<v8::Function>::New(isolate, callback_));
+ context_->SafeCallFunction(v8::Local<v8::Function>::New(isolate, callback_),
+ 0, nullptr);
delete this;
}
« no previous file with comments | « chrome/renderer/extensions/cast_streaming_native_handler.cc ('k') | extensions/renderer/wake_event_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698