summaryrefslogtreecommitdiffstats
path: root/src/core/net
diff options
context:
space:
mode:
authorJüri Valdmann <juri.valdmann@qt.io>2018-10-29 12:25:07 +0100
committerJüri Valdmann <juri.valdmann@qt.io>2018-10-31 23:24:44 +0000
commit0c7376edee43718fa868f9fdbe0a9419ba4a636a (patch)
treec84558cc023d0d9599e32e129d9dfc247e542043 /src/core/net
parentbc2ae1dbebea3b6c71237fc3d073cec4335037d8 (diff)
Move the profiles' url scheme handler API to core
Implementation of the url scheme handler API in QWebEngineProfile and QQuickWebEngineProfile is exactly identical, so move it to the ProfileAdapter instead. Change-Id: I01baf1c4e5b3c393675adefb0470def90b8b2813 Task-number: QTBUG-71215 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/net')
-rw-r--r--src/core/net/url_request_custom_job_proxy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/net/url_request_custom_job_proxy.cpp b/src/core/net/url_request_custom_job_proxy.cpp
index b5f10388c..a80ef8060 100644
--- a/src/core/net/url_request_custom_job_proxy.cpp
+++ b/src/core/net/url_request_custom_job_proxy.cpp
@@ -164,7 +164,7 @@ void URLRequestCustomJobProxy::initialize(GURL url, std::string method, base::Op
QWebEngineUrlSchemeHandler *schemeHandler = nullptr;
if (m_profileAdapter)
- schemeHandler = m_profileAdapter->customUrlSchemeHandlers()[toQByteArray(m_scheme)];
+ schemeHandler = m_profileAdapter->urlSchemeHandler(toQByteArray(m_scheme));
if (schemeHandler) {
m_delegate = new URLRequestCustomJobDelegate(this, toQt(url),