diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-02-23 15:24:46 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-02-23 15:59:06 +0000 |
commit | 53944320a5e82943c3dfe11e74890f4928a15a47 (patch) | |
tree | 95e295c2cfe4d4de1990848e113236517216d1ca /src/core/browser_context_qt.cpp | |
parent | f0ae944eaed5e551fd680bd0126f0f500faab432 (diff) |
Implement SSLHostStateDelegate
This class was introduced to track accepted certificate errors.
Our lack of implementation caused a regression in certificate error
handling.
Task-number: QTBUG-51319
Change-Id: Idf3314fd17a5f9cb13a4513a3ccdb40954519c0d
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/core/browser_context_qt.cpp')
-rw-r--r-- | src/core/browser_context_qt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/browser_context_qt.cpp b/src/core/browser_context_qt.cpp index d21f963a9..902af8af9 100644 --- a/src/core/browser_context_qt.cpp +++ b/src/core/browser_context_qt.cpp @@ -41,6 +41,7 @@ #include "permission_manager_qt.h" #include "qtwebenginecoreglobal_p.h" #include "resource_context_qt.h" +#include "ssl_host_state_delegate_qt.h" #include "type_conversion.h" #include "url_request_context_getter_qt.h" @@ -132,7 +133,9 @@ content::PushMessagingService *BrowserContextQt::GetPushMessagingService() content::SSLHostStateDelegate* BrowserContextQt::GetSSLHostStateDelegate() { - return 0; + if (!sslHostStateDelegate) + sslHostStateDelegate.reset(new SSLHostStateDelegateQt(m_adapter)); + return sslHostStateDelegate.get(); } scoped_ptr<content::ZoomLevelDelegate> BrowserContextQt::CreateZoomLevelDelegate(const base::FilePath&) |