diff options
Diffstat (limited to 'src/core/web_contents_delegate_qt.cpp')
-rw-r--r-- | src/core/web_contents_delegate_qt.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp index a04ef700b..afa48a5b1 100644 --- a/src/core/web_contents_delegate_qt.cpp +++ b/src/core/web_contents_delegate_qt.cpp @@ -794,8 +794,6 @@ bool WebContentsDelegateQt::CheckMediaAccessPermission(content::RenderFrameHost void WebContentsDelegateQt::RegisterProtocolHandler(content::RenderFrameHost *frameHost, const std::string &protocol, const GURL &url, bool) { content::BrowserContext *context = frameHost->GetBrowserContext(); - if (context->IsOffTheRecord()) - return; ProtocolHandler handler = ProtocolHandler::CreateProtocolHandler(protocol, url); @@ -813,8 +811,6 @@ void WebContentsDelegateQt::RegisterProtocolHandler(content::RenderFrameHost *fr void WebContentsDelegateQt::UnregisterProtocolHandler(content::RenderFrameHost *frameHost, const std::string &protocol, const GURL &url, bool) { content::BrowserContext* context = frameHost->GetBrowserContext(); - if (context->IsOffTheRecord()) - return; ProtocolHandler handler = ProtocolHandler::CreateProtocolHandler(protocol, url); |