diff --git a/shell/browser/extensions/electron_extensions_browser_client.cc b/shell/browser/extensions/electron_extensions_browser_client.cc index 222e80d582..793a9f32bd 100644 --- a/shell/browser/extensions/electron_extensions_browser_client.cc +++ b/shell/browser/extensions/electron_extensions_browser_client.cc @@ -373,6 +373,12 @@ void ElectronExtensionsBrowserClient::SetAPIClientForTest( api_client_.reset(api_client); } +void ElectronExtensionsBrowserClient::CreateExtensionWebContentsObserver( + content::WebContents* web_contents) { + extensions::ElectronExtensionWebContentsObserver::CreateForWebContents( + web_contents); +} + extensions::ExtensionWebContentsObserver* ElectronExtensionsBrowserClient::GetExtensionWebContentsObserver( content::WebContents* web_contents) { diff --git a/shell/browser/extensions/electron_extensions_browser_client.h b/shell/browser/extensions/electron_extensions_browser_client.h index 9841872f02..64c9592fc7 100644 --- a/shell/browser/extensions/electron_extensions_browser_client.h +++ b/shell/browser/extensions/electron_extensions_browser_client.h @@ -137,6 +137,8 @@ class ElectronExtensionsBrowserClient extensions::ExtensionCache* GetExtensionCache() override; bool IsBackgroundUpdateAllowed() override; bool IsMinBrowserVersionSupported(const std::string& min_version) override; + void CreateExtensionWebContentsObserver( + content::WebContents* web_contents) override; extensions::ExtensionWebContentsObserver* GetExtensionWebContentsObserver( content::WebContents* web_contents) override; extensions::KioskDelegate* GetKioskDelegate() override;