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

Unified Diff: base/metrics/metrics_hashes.h

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 | « base/metrics/BUILD.gn ('k') | base/metrics/metrics_hashes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/metrics_hashes.h
diff --git a/components/metrics/metrics_hashes.h b/base/metrics/metrics_hashes.h
similarity index 55%
rename from components/metrics/metrics_hashes.h
rename to base/metrics/metrics_hashes.h
index 0906c0aafaebbb567044e41c012526346b556959..ff1c800246870f7a46e80c2d15c7fc0bce4b6a33 100644
--- a/components/metrics/metrics_hashes.h
+++ b/base/metrics/metrics_hashes.h
@@ -2,19 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_METRICS_METRICS_HASHES_H_
-#define COMPONENTS_METRICS_METRICS_HASHES_H_
+#ifndef BASE_METRICS_METRICS_HASHES_H_
+#define BASE_METRICS_METRICS_HASHES_H_
+#include <stdint.h>
#include <string>
-#include "base/basictypes.h"
+#include "base/base_export.h"
-namespace metrics {
+namespace base {
// Computes a uint64 hash of a given string based on its MD5 hash. Suitable for
// metric names.
-uint64 HashMetricName(const std::string& name);
+BASE_EXPORT uint64_t HashMetricName(const std::string& name);
} // namespace metrics
-#endif // COMPONENTS_METRICS_METRICS_HASHES_H_
+#endif // BASE_METRICS_METRICS_HASHES_H_
« no previous file with comments | « base/metrics/BUILD.gn ('k') | base/metrics/metrics_hashes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698