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

Unified Diff: components/metrics/metrics_service_unittest.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/metrics/metrics_service_unittest.cc
diff --git a/components/metrics/metrics_service_unittest.cc b/components/metrics/metrics_service_unittest.cc
index cdcb1e20eea9d14775fa12c56cb4fbe7f9bf8b6e..b306c9b7523c3e36d4b84cb8586cd9d841331ccf 100644
--- a/components/metrics/metrics_service_unittest.cc
+++ b/components/metrics/metrics_service_unittest.cc
@@ -9,12 +9,12 @@
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
+#include "base/metrics/metrics_hashes.h"
#include "base/metrics/statistics_recorder.h"
#include "base/prefs/testing_pref_service.h"
#include "base/threading/platform_thread.h"
#include "components/compression/compression_utils.h"
#include "components/metrics/client_info.h"
-#include "components/metrics/metrics_hashes.h"
#include "components/metrics/metrics_log.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/metrics_state_manager.h"
@@ -122,7 +122,7 @@ class MetricsServiceTest : public testing::Test {
const base::StatisticsRecorder::Histograms& histograms,
uint64 name_hash) {
for (const base::HistogramBase* histogram : histograms) {
- if (name_hash == HashMetricName(histogram->histogram_name()))
+ if (name_hash == base::HashMetricName(histogram->histogram_name()))
return histogram;
}
return nullptr;
« no previous file with comments | « components/metrics/metrics_log.cc ('k') | components/metrics/profiler/profiler_metrics_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698