blob: 823fcd7ba23d6d4fbe31a2e02576d870aacba7d2 [file] [log] [blame]
[email protected]bca34942012-09-05 18:23:251// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]50ae9f12013-08-29 18:03:225#ifndef COMPONENTS_VARIATIONS_METRICS_UTIL_H_
6#define COMPONENTS_VARIATIONS_METRICS_UTIL_H_
[email protected]bca34942012-09-05 18:23:257
avi5dd91f82015-12-25 22:30:468#include <stdint.h>
9
[email protected]bca34942012-09-05 18:23:2510#include <string>
11
[email protected]bca34942012-09-05 18:23:2512
13namespace metrics {
14
avi5dd91f82015-12-25 22:30:4615// Computes a uint32_t hash of a given string based on its SHA1 hash. Suitable
16// for uniquely identifying field trial names and group names.
17uint32_t HashName(const std::string& name);
[email protected]bca34942012-09-05 18:23:2518
19} // namespace metrics
20
[email protected]50ae9f12013-08-29 18:03:2221#endif // COMPONENTS_VARIATIONS_METRICS_UTIL_H_