From 94ed642c693f3f5d925f77ac881fa9ef5db0f951 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 7 Feb 2019 10:34:08 +0100 Subject: Fix undefined behavior with extensions disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return null as GuestManager. Change-Id: Idcc0a98cd80a38b27dba3d8c04b96af5e0904cad Reviewed-by: Michael BrĂ¼ning --- src/core/profile_qt.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/profile_qt.cpp') 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 } -- cgit v1.2.3