From 580fdd43c23aa409880a64f7dc0ce04ec57a1bcd Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 9 May 2018 13:23:17 +0200 Subject: Fix build without qtlocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I81ac6fcf14563a6d093c51d93754d438992ee52a Reviewed-by: Michael BrĂ¼ning --- src/core/content_browser_client_qt.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/content_browser_client_qt.cpp') diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp index 30ec43ca0..1949823fe 100644 --- a/src/core/content_browser_client_qt.cpp +++ b/src/core/content_browser_client_qt.cpp @@ -68,6 +68,7 @@ #include "content/public/common/main_function_params.h" #include "content/public/common/service_names.mojom.h" #include "content/public/common/url_constants.h" +#include "device/geolocation/public/cpp/location_provider.h" #include "mojo/public/cpp/bindings/binding.h" #include "mojo/public/cpp/bindings/binding_set.h" #include "printing/features/features.h" @@ -123,6 +124,10 @@ #include "renderer_host/pepper/pepper_host_factory_qt.h" #endif +#if defined(QT_USE_POSITIONING) +#include "location_provider_qt.h" +#endif + #include #include #ifndef QT_NO_OPENGL @@ -737,7 +742,11 @@ bool ContentBrowserClientQt::CanCreateWindow( std::unique_ptr ContentBrowserClientQt::OverrideSystemLocationProvider() { +#if defined(QT_USE_POSITIONING) return base::WrapUnique(new LocationProviderQt()); +#else + return nullptr; +#endif } scoped_refptr GetSystemRequestContextOnUIThread() -- cgit v1.2.3