diff --git a/shell/browser/api/electron_api_web_contents.cc b/shell/browser/api/electron_api_web_contents.cc index b70b5033912d..3eeffa7099aa 100644 --- a/shell/browser/api/electron_api_web_contents.cc +++ b/shell/browser/api/electron_api_web_contents.cc @@ -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 regions) { for (ExtendedWebContentsObserver& observer : observers_) diff --git a/shell/browser/api/electron_api_web_contents.h b/shell/browser/api/electron_api_web_contents.h index 5e1940378439..e150cd4e1656 100644 --- a/shell/browser/api/electron_api_web_contents.h +++ b/shell/browser/api/electron_api_web_contents.h @@ -597,10 +597,6 @@ class WebContents : public gin_helper::TrackableObject, blink::CloneableMessage arguments) override; void MessageHost(const std::string& channel, blink::CloneableMessage arguments) override; -#if BUILDFLAG(ENABLE_REMOTE_MODULE) - void DereferenceRemoteJSObject(const std::string& context_id, - int object_id) override; -#endif void UpdateDraggableRegions( std::vector regions) override; void SetTemporaryZoomLevel(double level) override; diff --git a/shell/common/api/api.mojom b/shell/common/api/api.mojom index 320eedbc0aa2..ff5dc1bdfdbb 100644 --- a/shell/common/api/api.mojom +++ b/shell/common/api/api.mojom @@ -72,13 +72,6 @@ interface ElectronBrowser { string channel, blink.mojom.CloneableMessage arguments); - // This is an API specific to the "remote" module, and will ultimately be - // replaced by generic IPC once WeakRef is generally available. - [EnableIf=enable_remote_module] - DereferenceRemoteJSObject( - string context_id, - int32 object_id); - UpdateDraggableRegions( array regions);