Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1652)

Unified Diff: components/history/core/browser/history_backend.cc

Issue 2776853002: Make UMA_HISTOGRAM_ENUMERATION work with scoped enums. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index cd3bffe171c067a733b6b4420cccf9bfbb9724fb..fbd7e08f04eabe2f48b18c23435cd27286a782fe 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -731,8 +731,8 @@ void HistoryBackend::CloseAllDatabases() {
void HistoryBackend::RecordTopHostsMetrics(const GURL& url) {
// Convert index from 0-based to 1-based.
- UMA_HISTOGRAM_ENUMERATION("History.TopHostsVisitsByRank",
- HostRankIfAvailable(url) + 1, kMaxTopHosts + 2);
+ UMA_HISTOGRAM_EXACT_LINEAR("History.TopHostsVisitsByRank",
+ HostRankIfAvailable(url) + 1, kMaxTopHosts + 2);
}
std::pair<URLID, VisitID> HistoryBackend::AddPageVisit(

Powered by Google App Engine
This is Rietveld 408576698