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

Unified Diff: components/metrics/cloned_install_detector.cc

Issue 636363004: Make remaining parts of components/metrics use metrics namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros compile Created 6 years, 2 months 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/clean_exit_beacon.cc ('k') | components/metrics/daily_event_unittest.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 b93e6e61621bdc29cf3656c3956ce9c8b9202405..be89bb9aec4eb10b9181cab4ad3ac6c5ff8dc1f8 100644
--- a/components/metrics/cloned_install_detector.cc
+++ b/components/metrics/cloned_install_detector.cc
@@ -4,6 +4,8 @@
#include "components/metrics/cloned_install_detector.h"
+#include <string>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/metrics/histogram.h"
@@ -11,7 +13,6 @@
#include "base/prefs/pref_service.h"
#include "base/single_thread_task_runner.h"
#include "base/task_runner_util.h"
-#include "components/metrics/cloned_install_detector.h"
#include "components/metrics/machine_id_provider.h"
#include "components/metrics/metrics_hashes.h"
#include "components/metrics/metrics_pref_names.h"
@@ -21,7 +22,7 @@ namespace metrics {
namespace {
uint32 HashRawId(const std::string& value) {
- uint64 hash = metrics::HashMetricName(value);
+ uint64 hash = HashMetricName(value);
// Only use 24 bits from the 64-bit hash.
return hash & ((1 << 24) - 1);
@@ -57,8 +58,8 @@ void ClonedInstallDetector::CheckForClonedInstall(
base::PostTaskAndReplyWithResult(
task_runner.get(),
FROM_HERE,
- base::Bind(&metrics::MachineIdProvider::GetMachineId, raw_id_provider_),
- base::Bind(&metrics::ClonedInstallDetector::SaveMachineId,
+ base::Bind(&MachineIdProvider::GetMachineId, raw_id_provider_),
+ base::Bind(&ClonedInstallDetector::SaveMachineId,
weak_ptr_factory_.GetWeakPtr(),
local_state));
}
« no previous file with comments | « components/metrics/clean_exit_beacon.cc ('k') | components/metrics/daily_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698