diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-02-08 16:13:34 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-03-29 14:52:16 +0200 |
commit | d9ae75b3234392aebb714c1046a471386a63deed (patch) | |
tree | 5ea50ef1a82447ca85032028ca0c935265f0b4ae /src/core/register_protocol_handler_request_controller_impl.cpp | |
parent | db59a3096b4f44aaacabdc5b455fbc0a3a6b8fb1 (diff) |
Adaptations for Chrome 98
Change-Id: I607604f85a111a69da77ca949dddf3399b9721b3
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/register_protocol_handler_request_controller_impl.cpp')
-rw-r--r-- | src/core/register_protocol_handler_request_controller_impl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/register_protocol_handler_request_controller_impl.cpp b/src/core/register_protocol_handler_request_controller_impl.cpp index f16894799..961ca82b4 100644 --- a/src/core/register_protocol_handler_request_controller_impl.cpp +++ b/src/core/register_protocol_handler_request_controller_impl.cpp @@ -39,6 +39,7 @@ #include "register_protocol_handler_request_controller_impl.h" #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" +#include "components/custom_handlers/protocol_handler_registry.h" #include "content/public/browser/web_contents.h" #include "type_conversion.h" @@ -59,7 +60,7 @@ RegisterProtocolHandlerRequestControllerImpl::~RegisterProtocolHandlerRequestCon reject(); } -ProtocolHandlerRegistry *RegisterProtocolHandlerRequestControllerImpl::protocolHandlerRegistry() +custom_handlers::ProtocolHandlerRegistry *RegisterProtocolHandlerRequestControllerImpl::protocolHandlerRegistry() { content::WebContents *webContents = web_contents(); if (!webContents) @@ -70,13 +71,13 @@ ProtocolHandlerRegistry *RegisterProtocolHandlerRequestControllerImpl::protocolH void RegisterProtocolHandlerRequestControllerImpl::accepted() { - if (ProtocolHandlerRegistry *registry = protocolHandlerRegistry()) + if (custom_handlers::ProtocolHandlerRegistry *registry = protocolHandlerRegistry()) registry->OnAcceptRegisterProtocolHandler(m_handler); } void RegisterProtocolHandlerRequestControllerImpl::rejected() { - if (ProtocolHandlerRegistry *registry = protocolHandlerRegistry()) + if (custom_handlers::ProtocolHandlerRegistry *registry = protocolHandlerRegistry()) registry->OnIgnoreRegisterProtocolHandler(m_handler); } |