#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"
const char SupervisedUserExtensionsMetricsRecorder::kExtensionsHistogramName[] = …;
const char
SupervisedUserExtensionsMetricsRecorder::kApprovalGrantedActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kPermissionsIncreaseGrantedActionName[] = …;
const char
SupervisedUserExtensionsMetricsRecorder::kApprovalRemovedActionName[] = …;
const char
SupervisedUserExtensionsMetricsRecorder::kApprovalGrantedByDefaultName[] = …;
const char
SupervisedUserExtensionsMetricsRecorder::kLocalApprovalGrantedName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kExtensionInstallDialogHistogramName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kExtensionInstallDialogOpenedActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kExtensionInstallDialogChildCanceledActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kExtensionInstallDialogChildAcceptedActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kParentPermissionDialogHistogramName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kParentPermissionDialogOpenedActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kParentPermissionDialogParentApprovedActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kParentPermissionDialogParentCanceledActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kIncorrectParentPasswordProvidedActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::kEnablementHistogramName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::kEnabledActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::kDisabledActionName[] = …;
const char
SupervisedUserExtensionsMetricsRecorder::kFailedToEnableActionName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kExtensionParentApprovalEntryPointHistogramName[] = …;
const char SupervisedUserExtensionsMetricsRecorder::
kImplicitParentApprovalGrantEntryPointHistogramName[] = …;
SupervisedUserExtensionsMetricsRecorder::
SupervisedUserExtensionsMetricsRecorder() = default;
void SupervisedUserExtensionsMetricsRecorder::OnDialogOpened() { … }
void SupervisedUserExtensionsMetricsRecorder::OnDialogAccepted() { … }
void SupervisedUserExtensionsMetricsRecorder::OnDialogCanceled() { … }
void SupervisedUserExtensionsMetricsRecorder::RecordExtensionsUmaMetrics(
UmaExtensionState state) { … }
void SupervisedUserExtensionsMetricsRecorder::
RecordExtensionInstallDialogUmaMetrics(ExtensionInstallDialogState state) { … }
void SupervisedUserExtensionsMetricsRecorder::
RecordParentPermissionDialogUmaMetrics(ParentPermissionDialogState state) { … }
void SupervisedUserExtensionsMetricsRecorder::
RecordExtensionParentApprovalDialogEntryPointUmaMetrics(
SupervisedUserExtensionParentApprovalEntryPoint
extension_approval_entry_point) { … }
void SupervisedUserExtensionsMetricsRecorder::
RecordImplicitParentApprovalGrantEntryPointEntryPointUmaMetrics(
ImplicitExtensionApprovalEntryPoint extension_approval_entry_point) { … }
void SupervisedUserExtensionsMetricsRecorder::RecordEnablementUmaMetrics(
EnablementState state) { … }