chromium/components/ntp_tiles/metrics.cc

// Copyright 2016 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/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 =;

// Identifiers for the various tile sources. Should sync with
// NewTabPageProviders in histogram_suffixes_list.xml.
const char kHistogramClientName[] =;
const char kHistogramPopularName[] =;
const char kHistogramBakedInName[] =;
const char kHistogramAllowlistName[] =;
const char kHistogramHomepageName[] =;
const char kHistogramCustomLinksName[] =;

// Suffixes for the various icon types.
const char kTileTypeSuffixIconColor[] =;
const char kTileTypeSuffixIconGray[] =;
const char kTileTypeSuffixIconReal[] =;

std::string GetSourceHistogramName(TileSource source) {}

const char* GetTileTypeSuffix(TileVisualType type) {}

}  // namespace

void RecordPageImpression(int number_of_tiles) {}

void RecordTileImpression(const NTPTileImpression& impression) {}

void RecordTileClick(const NTPTileImpression& impression) {}

void RecordsMigratedDefaultAppDeleted(
    const DeletedTileType& most_visited_app_type) {}

}  // namespace metrics
}  // namespace ntp_tiles