refactor: remove content::WebContentsObserver from Event (#19251)

This commit is contained in:
Milan Burda 2019-08-01 00:20:28 +02:00 committed by Shelley Vohr
parent c71cdce0b7
commit c76b0b70c1
3 changed files with 6 additions and 43 deletions

View file

@ -55,7 +55,7 @@ v8::Local<v8::Object> CreateJSEvent(
if (use_native_event) {
mate::Handle<mate::Event> native_event = mate::Event::Create(isolate);
native_event->SetSenderAndMessage(sender, std::move(callback));
native_event->SetCallback(std::move(callback));
event = v8::Local<v8::Object>::Cast(native_event.ToV8());
} else {
event = CreateEventObject(isolate);