#include "components/feature_engagement/internal/stats.h"
#include <string>
#include "base/check.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "base/notreached.h"
#include "components/feature_engagement/public/feature_list.h"
namespace feature_engagement {
namespace stats {
namespace {
const char kEventStoreSuffix[] = …;
const char kAvailabilityStoreSuffix[] = …;
const char kShouldTriggerHelpUIHistogram[] = …;
void LogTriggerHelpUIResult(const std::string& name,
TriggerHelpUIResult result) { … }
}
std::string ToDbHistogramSuffix(StoreType type) { … }
void RecordNotifyEvent(const std::string& event_name,
const Configuration* config,
bool is_model_ready) { … }
void RecordShouldTriggerHelpUI(const base::Feature& feature,
const FeatureConfig& feature_config,
const ConditionValidator::Result& result) { … }
void RecordUserDismiss() { … }
void RecordUserSnoozeAction(Tracker::SnoozeAction snooze_action) { … }
void RecordDbUpdate(bool success, StoreType type) { … }
void RecordDbInitEvent(bool success, StoreType type) { … }
void RecordEventDbLoadEvent(bool success, const std::vector<Event>& events) { … }
void RecordAvailabilityDbLoadEvent(bool success) { … }
}
}