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

Unified Diff: components/rappor/rappor_service.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
Index: components/rappor/rappor_service.cc
diff --git a/components/rappor/rappor_service.cc b/components/rappor/rappor_service.cc
index 31ae1d0b304417b95fe29daccfd362f312f6b289..0d2c4233c58e33cc56d07d456143dde44c195c47 100644
--- a/components/rappor/rappor_service.cc
+++ b/components/rappor/rappor_service.cc
@@ -5,9 +5,9 @@
#include "components/rappor/rappor_service.h"
#include "base/metrics/field_trial.h"
+#include "base/metrics/metrics_hashes.h"
#include "base/stl_util.h"
#include "base/time/time.h"
-#include "components/metrics/metrics_hashes.h"
#include "components/rappor/log_uploader.h"
#include "components/rappor/proto/rappor_metric.pb.h"
#include "components/rappor/rappor_metric.h"
@@ -171,7 +171,7 @@ bool RapporService::ExportMetrics(RapporReports* reports) {
for (const auto& kv : metrics_map_) {
const RapporMetric* metric = kv.second;
RapporReports::Report* report = reports->add_report();
- report->set_name_hash(metrics::HashMetricName(kv.first));
+ report->set_name_hash(base::HashMetricName(kv.first));
ByteVector bytes = metric->GetReport(secret_);
report->set_bits(std::string(bytes.begin(), bytes.end()));
DVLOG(2) << "Exporting metric " << kv.first;
« no previous file with comments | « components/metrics/profiler/profiler_metrics_provider_unittest.cc ('k') | components/rappor/rappor_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698