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

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: changed uint64 to uint64_t 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: base/metrics/metrics_hashes.h
diff --git a/components/metrics/metrics_hashes.h b/base/metrics/metrics_hashes.h
similarity index 59%
rename from components/metrics/metrics_hashes.h
rename to base/metrics/metrics_hashes.h
index 0906c0aafaebbb567044e41c012526346b556959..8bf4557791cdd68b81b0cbe0b9a9721d7530534c 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 <string>
+#include "base/base_export.h"
#include "base/basictypes.h"
Mark Mentovai 2015/11/30 19:20:23 #include <stdint.h> instead of this.
bcwhite 2015/11/30 20:07:47 Done.
-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_

Powered by Google App Engine
This is Rietveld 408576698