#include "chrome/browser/supervised_user/linux_mac_windows/supervised_user_extensions_metrics_delegate_impl.h"
#include "base/debug/stack_trace.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/supervised_user/supervised_user_browser_utils.h"
#include "extensions/common/extension_set.h"
namespace {
int GetExtensionsCount(const extensions::ExtensionSet& extensions) { … }
constexpr char kInstalledExtensionsCountHistogramName[] = …;
constexpr char kEnabledExtensionsCountHistogramName[] = …;
constexpr char kDisabledExtensionsCountHistogramName[] = …;
}
SupervisedUserExtensionsMetricsDelegateImpl::
SupervisedUserExtensionsMetricsDelegateImpl(
const extensions::ExtensionRegistry* extension_registry,
Profile* profile)
: … { … }
SupervisedUserExtensionsMetricsDelegateImpl::
~SupervisedUserExtensionsMetricsDelegateImpl() = default;
bool SupervisedUserExtensionsMetricsDelegateImpl::RecordExtensionsMetrics() { … }