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

Unified Diff: components/metrics/cloned_install_detector.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/call_stack_profile_metrics_provider.cc ('k') | components/metrics/histogram_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/cloned_install_detector.cc
diff --git a/components/metrics/cloned_install_detector.cc b/components/metrics/cloned_install_detector.cc
index b9dc25c5bc6acd4c5a6dfd3ac5f70eb03bd40ea4..4d57632caae80befb02cd574d2663eeecc14fe42 100644
--- a/components/metrics/cloned_install_detector.cc
+++ b/components/metrics/cloned_install_detector.cc
@@ -9,12 +9,12 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/metrics/histogram_macros.h"
+#include "base/metrics/metrics_hashes.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pref_service.h"
#include "base/single_thread_task_runner.h"
#include "base/task_runner_util.h"
#include "components/metrics/machine_id_provider.h"
-#include "components/metrics/metrics_hashes.h"
#include "components/metrics/metrics_pref_names.h"
namespace metrics {
@@ -22,7 +22,7 @@ namespace metrics {
namespace {
uint32 HashRawId(const std::string& value) {
- uint64 hash = HashMetricName(value);
+ uint64 hash = base::HashMetricName(value);
// Only use 24 bits from the 64-bit hash.
return hash & ((1 << 24) - 1);
« no previous file with comments | « components/metrics/call_stack_profile_metrics_provider.cc ('k') | components/metrics/histogram_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698