diff options
author | Moonchild <moonchild@palemoon.org> | 2021-10-29 11:02:27 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-02 14:39:54 +0200 |
commit | ee86d3eb9c468edbb81550d27114ed66b3d71ee5 (patch) | |
tree | a00ffa052ffb8d072203938f595548dcd3b2e0ed /security | |
parent | d0acadd727468ccaa4e3cbe3673e29890c2551ca (diff) | |
download | uxp-ee86d3eb9c468edbb81550d27114ed66b3d71ee5.tar.gz |
Issue #21 - Remove Telemetry plumbing and fix build.
Note this won't give working applications. Requires FE changes and
additional js module changes (next part).
Diffstat (limited to 'security')
-rw-r--r-- | security/manager/ssl/DataStorage.cpp | 1 | ||||
-rw-r--r-- | security/manager/ssl/nsCertOverrideService.cpp | 16 | ||||
-rw-r--r-- | security/manager/ssl/nsNTLMAuthModule.cpp | 7 | ||||
-rw-r--r-- | security/manager/ssl/nsPKCS11Slot.cpp | 1 |
4 files changed, 0 insertions, 25 deletions
diff --git a/security/manager/ssl/DataStorage.cpp b/security/manager/ssl/DataStorage.cpp index 307453cdaa..8fd7424e52 100644 --- a/security/manager/ssl/DataStorage.cpp +++ b/security/manager/ssl/DataStorage.cpp @@ -11,7 +11,6 @@ #include "mozilla/dom/ContentParent.h" #include "mozilla/Preferences.h" #include "mozilla/Services.h" -#include "mozilla/Telemetry.h" #include "mozilla/Unused.h" #include "nsAppDirectoryServiceDefs.h" #include "nsDirectoryServiceUtils.h" diff --git a/security/manager/ssl/nsCertOverrideService.cpp b/security/manager/ssl/nsCertOverrideService.cpp index 42a51e8755..438709856f 100644 --- a/security/manager/ssl/nsCertOverrideService.cpp +++ b/security/manager/ssl/nsCertOverrideService.cpp @@ -8,7 +8,6 @@ #include "NSSCertDBTrustDomain.h" #include "ScopedNSSTypes.h" #include "SharedSSLState.h" -#include "mozilla/Telemetry.h" #include "nsAppDirectoryServiceDefs.h" #include "nsCRT.h" #include "nsILineInputStream.h" @@ -150,7 +149,6 @@ nsCertOverrideService::Observe(nsISupports *, mSettingsFile = nullptr; } Read(); - CountPermanentOverrideTelemetry(); } return NS_OK; @@ -597,20 +595,6 @@ nsCertOverrideService::ClearValidityOverride(const nsACString & aHostName, int32 return NS_OK; } -void -nsCertOverrideService::CountPermanentOverrideTelemetry() -{ - ReentrantMonitorAutoEnter lock(monitor); - uint32_t overrideCount = 0; - for (auto iter = mSettingsTable.Iter(); !iter.Done(); iter.Next()) { - if (!iter.Get()->mSettings.mIsTemporary) { - overrideCount++; - } - } - Telemetry::Accumulate(Telemetry::SSL_PERMANENT_CERT_ERROR_OVERRIDES, - overrideCount); -} - static bool matchesDBKey(nsIX509Cert* cert, const nsCString& matchDbKey) { diff --git a/security/manager/ssl/nsNTLMAuthModule.cpp b/security/manager/ssl/nsNTLMAuthModule.cpp index 46a4a21a03..cfbb5f0484 100644 --- a/security/manager/ssl/nsNTLMAuthModule.cpp +++ b/security/manager/ssl/nsNTLMAuthModule.cpp @@ -1,4 +1,3 @@ -/* vim:set ts=2 sw=2 et cindent: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -17,7 +16,6 @@ #include "mozilla/Logging.h" #include "mozilla/Preferences.h" #include "mozilla/Sprintf.h" -#include "mozilla/Telemetry.h" #include "nsCOMPtr.h" #include "nsComponentManagerUtils.h" #include "nsICryptoHMAC.h" @@ -1007,11 +1005,6 @@ nsNTLMAuthModule::Init(const char *serviceName, mPassword = password; mNTLMNegotiateSent = false; - static bool sTelemetrySent = false; - if (!sTelemetrySent) { - sTelemetrySent = true; - } - return NS_OK; } diff --git a/security/manager/ssl/nsPKCS11Slot.cpp b/security/manager/ssl/nsPKCS11Slot.cpp index 015f869011..e456c7d6cf 100644 --- a/security/manager/ssl/nsPKCS11Slot.cpp +++ b/security/manager/ssl/nsPKCS11Slot.cpp @@ -8,7 +8,6 @@ #include "mozilla/Casting.h" #include "mozilla/Logging.h" -#include "mozilla/Telemetry.h" #include "mozilla/Unused.h" #include "nsCOMPtr.h" #include "nsIMutableArray.h" |