From 24f5726ae6530a8fd8ac044536f591158f64d31d Mon Sep 17 00:00:00 2001 From: rxu Date: Wed, 19 Jan 2022 14:54:30 +0800 Subject: [PATCH] Add baidu search ad telemetry --- .../feature/search/telemetry/BaseSearchTelemetry.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/feature/search/src/main/java/mozilla/components/feature/search/telemetry/BaseSearchTelemetry.kt b/components/feature/search/src/main/java/mozilla/components/feature/search/telemetry/BaseSearchTelemetry.kt index 0b41a89527e..28264ed4fc6 100644 --- a/components/feature/search/src/main/java/mozilla/components/feature/search/telemetry/BaseSearchTelemetry.kt +++ b/components/feature/search/src/main/java/mozilla/components/feature/search/telemetry/BaseSearchTelemetry.kt @@ -104,7 +104,11 @@ abstract class BaseSearchTelemetry { queryParam = "word", codeParam = "from", codePrefixes = listOf("1000969a"), - followOnParams = listOf("oq") + followOnParams = listOf("oq"), + extraAdServersRegexps = listOf( + "^https?://www\\.baidu\\.com/baidu\\.php?", + "^https?://m\\.baidu\\.com/baidu\\.php?" + ) ), SearchProviderModel( name = "bing",