blob: e1f55595191b29c27bf85e5c2a8531b7a50ed178 [file] [log] [blame]
// 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 "chrome/browser/metrics/upgrade_metrics_provider.h"
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/upgrade_detector/upgrade_detector.h"
UpgradeMetricsProvider::UpgradeMetricsProvider() {}
UpgradeMetricsProvider::~UpgradeMetricsProvider() {}
void UpgradeMetricsProvider::ProvideCurrentSessionData(
metrics::ChromeUserMetricsExtension* uma_proto) {
UpgradeDetector* upgrade_detector = UpgradeDetector::GetInstance();
UMA_HISTOGRAM_ENUMERATION("UpgradeDetector.NotificationStage",
upgrade_detector->upgrade_notification_stage(),
UpgradeDetector::UPGRADE_ANNOYANCE_MAX_VALUE + 1);
}