summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.cpp
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2018-08-02 11:56:29 +0200
committerMichal Klocek <michal.klocek@qt.io>2018-08-03 11:01:28 +0000
commit14a8ac1534bc4314cf6c89aceaaa382f42314dac (patch)
treea9eb363b39a3c9bcaa160aa89cc354deb543f610 /src/core/content_browser_client_qt.cpp
parent9a2448a292f6c1d3f134c39be2a01acea3cef982 (diff)
Fix running webengine without default profile
If default profile is not needed do not create by accident one in ~QWebEngineProfilePrivate. Task-number: QTBUG-66068 Change-Id: Ib4131268686178560f3a89dce41e59eb57613e17 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r--src/core/content_browser_client_qt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
index 59d9a4a84..393b0aee1 100644
--- a/src/core/content_browser_client_qt.cpp
+++ b/src/core/content_browser_client_qt.cpp
@@ -768,7 +768,7 @@ scoped_refptr<net::URLRequestContextGetter> GetSystemRequestContextOnUIThread()
{
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
return scoped_refptr<net::URLRequestContextGetter>(
- ProfileAdapter::defaultProfileAdapter()->profile()->GetRequestContext());
+ ProfileAdapter::createDefaultProfileAdapter()->profile()->GetRequestContext());
}
void ContentBrowserClientQt::GetGeolocationRequestContext(