#include "components/ntp_tiles/metrics.h"
#include <string>
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "base/notreached.h"
#include "base/strings/stringprintf.h"
#include "components/ntp_tiles/constants.h"
namespace ntp_tiles {
namespace metrics {
namespace {
const int kLastTitleSource = …;
const char kHistogramClientName[] = …;
const char kHistogramPopularName[] = …;
const char kHistogramBakedInName[] = …;
const char kHistogramAllowlistName[] = …;
const char kHistogramHomepageName[] = …;
const char kHistogramCustomLinksName[] = …;
const char kTileTypeSuffixIconColor[] = …;
const char kTileTypeSuffixIconGray[] = …;
const char kTileTypeSuffixIconReal[] = …;
std::string GetSourceHistogramName(TileSource source) { … }
const char* GetTileTypeSuffix(TileVisualType type) { … }
}
void RecordPageImpression(int number_of_tiles) { … }
void RecordTileImpression(const NTPTileImpression& impression) { … }
void RecordTileClick(const NTPTileImpression& impression) { … }
void RecordsMigratedDefaultAppDeleted(
const DeletedTileType& most_visited_app_type) { … }
}
}