chromium/components/feature_engagement/internal/stats.cc

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

#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 {

// Histogram suffixes for database metrics, must match the ones in
// histograms.xml.
const char kEventStoreSuffix[] =;
const char kAvailabilityStoreSuffix[] =;

// A shadow histogram across all features. Also the base name for the suffix
// based feature specific histograms; for example for IPH_MyFun, it would be:
// InProductHelp.ShouldTriggerHelpUI.IPH_MyFun.
const char kShouldTriggerHelpUIHistogram[] =;

// Helper function to log a TriggerHelpUIResult.
void LogTriggerHelpUIResult(const std::string& name,
                            TriggerHelpUIResult result) {}

}  // namespace

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) {}

}  // namespace stats
}  // namespace feature_engagement