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

Unified Diff: components/rappor/sample.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/rappor/rappor_service_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/rappor/sample.cc
diff --git a/components/rappor/sample.cc b/components/rappor/sample.cc
index f72ba2842269c66858d6b090a344cc4211091cb7..160371865f38431e1df6431147be55c1bbb16065 100644
--- a/components/rappor/sample.cc
+++ b/components/rappor/sample.cc
@@ -8,7 +8,7 @@
#include <string>
#include "base/logging.h"
-#include "components/metrics/metrics_hashes.h"
+#include "base/metrics/metrics_hashes.h"
#include "components/rappor/bloom_filter.h"
#include "components/rappor/byte_vector_utils.h"
#include "components/rappor/proto/rappor_metric.pb.h"
@@ -67,7 +67,7 @@ void Sample::ExportMetrics(const std::string& secret,
secret, parameters_, value_bytes);
RapporReports::Report* report = reports->add_report();
- report->set_name_hash(metrics::HashMetricName(
+ report->set_name_hash(base::HashMetricName(
metric_name + "." + kv.first));
report->set_bits(std::string(report_bytes.begin(), report_bytes.end()));
DVLOG(2) << "Exporting sample " << metric_name << "." << kv.first;
« no previous file with comments | « components/rappor/rappor_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698