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

Unified Diff: components/metrics/histogram_encoder.cc

Issue 1476633003: Move HashMetricName to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed unittest Created 5 years, 1 month 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
« no previous file with comments | « components/metrics/cloned_install_detector.cc ('k') | components/metrics/metrics_hashes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/histogram_encoder.cc
diff --git a/components/metrics/histogram_encoder.cc b/components/metrics/histogram_encoder.cc
index efca70bb1c1d157eb9def769e18c7ae898f98872..e364f6ec457b6dd9fda5ac0b44ef0f9257675689 100644
--- a/components/metrics/histogram_encoder.cc
+++ b/components/metrics/histogram_encoder.cc
@@ -10,7 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_samples.h"
-#include "components/metrics/metrics_hashes.h"
+#include "base/metrics/metrics_hashes.h"
using base::SampleCountIterator;
@@ -25,7 +25,7 @@ void EncodeHistogramDelta(const std::string& histogram_name,
// We will ignore the MAX_INT/infinite value in the last element of range[].
HistogramEventProto* histogram_proto = uma_proto->add_histogram_event();
- histogram_proto->set_name_hash(HashMetricName(histogram_name));
+ histogram_proto->set_name_hash(base::HashMetricName(histogram_name));
histogram_proto->set_sum(snapshot.sum());
for (scoped_ptr<SampleCountIterator> it = snapshot.Iterator(); !it->Done();
« no previous file with comments | « components/metrics/cloned_install_detector.cc ('k') | components/metrics/metrics_hashes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698