chromium/chrome/browser/supervised_user/supervised_user_extensions_metrics_recorder.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/supervised_user/supervised_user_extensions_metrics_recorder.h"

#include "base/metrics/histogram_functions.h"
#include "base/metrics/user_metrics.h"
#include "base/notreached.h"
#include "chrome/browser/ui/supervised_user/parent_permission_dialog.h"
#include "components/supervised_user/core/browser/supervised_user_preferences.h"
#include "components/supervised_user/core/common/features.h"

// static
const char SupervisedUserExtensionsMetricsRecorder::kExtensionsHistogramName[] =;
const char
    SupervisedUserExtensionsMetricsRecorder::kApprovalGrantedActionName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kPermissionsIncreaseGrantedActionName[] =;
const char
    SupervisedUserExtensionsMetricsRecorder::kApprovalRemovedActionName[] =;
const char
    SupervisedUserExtensionsMetricsRecorder::kApprovalGrantedByDefaultName[] =;
const char
    SupervisedUserExtensionsMetricsRecorder::kLocalApprovalGrantedName[] =;
// Extension Install Dialog.
const char SupervisedUserExtensionsMetricsRecorder::
    kExtensionInstallDialogHistogramName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kExtensionInstallDialogOpenedActionName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kExtensionInstallDialogChildCanceledActionName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kExtensionInstallDialogChildAcceptedActionName[] =;

// Parent Permission Dialog.
const char SupervisedUserExtensionsMetricsRecorder::
    kParentPermissionDialogHistogramName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kParentPermissionDialogOpenedActionName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kParentPermissionDialogParentApprovedActionName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kParentPermissionDialogParentCanceledActionName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kIncorrectParentPasswordProvidedActionName[] =;
// Enabling and disabling extensions.
const char SupervisedUserExtensionsMetricsRecorder::kEnablementHistogramName[] =;
const char SupervisedUserExtensionsMetricsRecorder::kEnabledActionName[] =;
const char SupervisedUserExtensionsMetricsRecorder::kDisabledActionName[] =;
const char
    SupervisedUserExtensionsMetricsRecorder::kFailedToEnableActionName[] =;
// Extension approval entry points.
const char SupervisedUserExtensionsMetricsRecorder::
    kExtensionParentApprovalEntryPointHistogramName[] =;
const char SupervisedUserExtensionsMetricsRecorder::
    kImplicitParentApprovalGrantEntryPointHistogramName[] =;

SupervisedUserExtensionsMetricsRecorder::
    SupervisedUserExtensionsMetricsRecorder() = default;

void SupervisedUserExtensionsMetricsRecorder::OnDialogOpened() {}

void SupervisedUserExtensionsMetricsRecorder::OnDialogAccepted() {}

void SupervisedUserExtensionsMetricsRecorder::OnDialogCanceled() {}

// static
void SupervisedUserExtensionsMetricsRecorder::RecordExtensionsUmaMetrics(
    UmaExtensionState state) {}

void SupervisedUserExtensionsMetricsRecorder::
    RecordExtensionInstallDialogUmaMetrics(ExtensionInstallDialogState state) {}

void SupervisedUserExtensionsMetricsRecorder::
    RecordParentPermissionDialogUmaMetrics(ParentPermissionDialogState state) {}

// static
void SupervisedUserExtensionsMetricsRecorder::
    RecordExtensionParentApprovalDialogEntryPointUmaMetrics(
        SupervisedUserExtensionParentApprovalEntryPoint
            extension_approval_entry_point) {}

// static
void SupervisedUserExtensionsMetricsRecorder::
    RecordImplicitParentApprovalGrantEntryPointEntryPointUmaMetrics(
        ImplicitExtensionApprovalEntryPoint extension_approval_entry_point) {}

// static
void SupervisedUserExtensionsMetricsRecorder::RecordEnablementUmaMetrics(
    EnablementState state) {}