chore: cleanup unused WebContents::DereferenceRemoteJSObject() (#24167)

This commit is contained in:
Milan Burda 2020-06-17 16:50:21 +02:00 committed by GitHub
parent e1e73fa5f5
commit cb6476fd12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 23 deletions

View file

@ -1226,18 +1226,6 @@ void WebContents::MessageHost(const std::string& channel,
InvokeCallback(), channel, std::move(arguments));
}
#if BUILDFLAG(ENABLE_REMOTE_MODULE)
void WebContents::DereferenceRemoteJSObject(const std::string& context_id,
int object_id) {
base::ListValue args;
args.Append(context_id);
args.Append(object_id);
EmitWithSender("-ipc-message", bindings_.dispatch_context(), InvokeCallback(),
/* internal */ true, "ELECTRON_BROWSER_DEREFERENCE",
std::move(args));
}
#endif
void WebContents::UpdateDraggableRegions(
std::vector<mojom::DraggableRegionPtr> regions) {
for (ExtendedWebContentsObserver& observer : observers_)