From ec127d7e4898940116be9fbbc8dc94b4cfa9b18c Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Fri, 15 Jun 2018 18:51:21 +0200 Subject: Migrate from BUILDFLAG to QT_CONFIG During configuration we mapped qt webengine fetures to chromium ones and passed them to gn. We used BUILDFLAG to optionally compile code in core. Use QT_CONFIG directly for qt files and add config sanity checks to make sure requested features are present. Change-Id: I930df114ac9aec8e73139ea9135925fc3ad8e39c Reviewed-by: Kai Koehne --- src/core/web_engine_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/web_engine_settings.cpp') diff --git a/src/core/web_engine_settings.cpp b/src/core/web_engine_settings.cpp index 7bad96a09..b45d47b46 100644 --- a/src/core/web_engine_settings.cpp +++ b/src/core/web_engine_settings.cpp @@ -409,7 +409,7 @@ void WebEngineSettings::applySettingsToWebPreferences(content::WebPreferences *p bool WebEngineSettings::applySettingsToRendererPreferences(content::RendererPreferences *prefs) { bool changed = false; -#if BUILDFLAG(ENABLE_WEBRTC) +#if QT_CONFIG(webengine_webrtc) if (!base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kForceWebRtcIPHandlingPolicy)) { std::string webrtc_ip_handling_policy = testAttribute(WebEngineSettings::WebRTCPublicInterfacesOnly) ? content::kWebRTCIPHandlingDefaultPublicInterfaceOnly -- cgit v1.2.3