#include "components/language/core/browser/ulp_metrics_logger.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/metrics_hashes.h"
#include "base/ranges/algorithm.h"
#include "ui/base/l10n/l10n_util.h"
namespace language {
void ULPMetricsLogger::RecordInitiationLanguageCount(int count) { … }
void ULPMetricsLogger::RecordInitiationUILanguageInULP(
ULPLanguageStatus status) { … }
void ULPMetricsLogger::RecordInitiationTranslateTargetInULP(
ULPLanguageStatus status) { … }
void ULPMetricsLogger::RecordInitiationTopAcceptLanguageInULP(
ULPLanguageStatus status) { … }
void ULPMetricsLogger::RecordInitiationAcceptLanguagesULPOverlap(
int overlap_ratio_percent) { … }
void ULPMetricsLogger::RecordInitiationNeverLanguagesMissingFromULP(
const std::vector<std::string>& never_languages) { … }
void ULPMetricsLogger::RecordInitiationNeverLanguagesMissingFromULPCount(
int count) { … }
void ULPMetricsLogger::RecordInitiationAcceptLanguagesPageLanguageOverlap(
int overlap_ratio) { … }
void ULPMetricsLogger::RecordInitiationPageLanguagesMissingFromULP(
const std::vector<std::string>& page_languages) { … }
void ULPMetricsLogger::RecordInitiationPageLanguagesMissingFromULPCount(
int count) { … }
ULPLanguageStatus ULPMetricsLogger::DetermineLanguageStatus(
const std::string& language,
const std::vector<std::string>& ulp_languages) { … }
int ULPMetricsLogger::LanguagesOverlapRatio(
const std::vector<std::string> languages,
const std::vector<std::string> compare_languages) { … }
std::vector<std::string> ULPMetricsLogger::RemoveULPLanguages(
const std::vector<std::string> languages,
const std::vector<std::string> ulp_languages) { … }
}