summaryrefslogtreecommitdiffstats
path: root/src/core/profile_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-07 10:34:08 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-15 17:30:25 +0000
commit94ed642c693f3f5d925f77ac881fa9ef5db0f951 (patch)
tree9d97c627b3490dea2ec504abf4283f367e1d1272 /src/core/profile_qt.cpp
parentc69f510ed6e85c64f02ee0ee030336cd9aa66793 (diff)
Fix undefined behavior with extensions disabled
Return null as GuestManager. Change-Id: Idcc0a98cd80a38b27dba3d8c04b96af5e0904cad Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/profile_qt.cpp')
-rw-r--r--src/core/profile_qt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/profile_qt.cpp b/src/core/profile_qt.cpp
index 3bfbcd3a2..39500629a 100644
--- a/src/core/profile_qt.cpp
+++ b/src/core/profile_qt.cpp
@@ -206,6 +206,8 @@ content::BrowserPluginGuestManager *ProfileQt::GetGuestManager()
{
#if BUILDFLAG(ENABLE_EXTENSIONS)
return guest_view::GuestViewManager::FromBrowserContext(this);
+#else
+ return nullptr;
#endif
}