From e6c696844cbaf134a755ccab05db699faf438aba Mon Sep 17 00:00:00 2001 From: "sergey.vasiliev" Date: Mon, 8 Jan 2018 10:46:17 +0100 Subject: [PATCH] statistics: extentions are not allowed (any plugin could override standard statistics servic) --- .../statistic/updater/SendStatisticsComponent.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/internal/statistic/updater/SendStatisticsComponent.java b/platform/platform-impl/src/com/intellij/internal/statistic/updater/SendStatisticsComponent.java index b371aefc6690..9de9ddec9a84 100644 --- a/platform/platform-impl/src/com/intellij/internal/statistic/updater/SendStatisticsComponent.java +++ b/platform/platform-impl/src/com/intellij/internal/statistic/updater/SendStatisticsComponent.java @@ -82,18 +82,7 @@ public class SendStatisticsComponent implements ApplicationComponent { }); } else if (StatisticsUploadAssistant.isSendAllowed() && StatisticsUploadAssistant.isTimeToSend()) { - StatisticsService serviceToUse = null; - StatisticsServiceEP[] extensions = StatisticsService.EP_NAME.getExtensions(); - if (extensions.length > 1) { - LOG.warn(String.format("More than one stats service detected (%s). Falling back to the built-in one", Arrays.toString(extensions))); - } - else if (extensions.length == 1) { - serviceToUse = extensions[0].getInstance(); - } - if (serviceToUse == null) { - serviceToUse = statisticsService; - } - runWithDelay(serviceToUse); + runWithDelay(statisticsService); } }