[email protected] | bca3494 | 2012-09-05 18:23:25 | [diff] [blame] | 1 | // 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] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 5 | #ifndef COMPONENTS_VARIATIONS_METRICS_UTIL_H_ |
6 | #define COMPONENTS_VARIATIONS_METRICS_UTIL_H_ | ||||
[email protected] | bca3494 | 2012-09-05 18:23:25 | [diff] [blame] | 7 | |
avi | 5dd91f8 | 2015-12-25 22:30:46 | [diff] [blame] | 8 | #include <stdint.h> |
9 | |||||
[email protected] | bca3494 | 2012-09-05 18:23:25 | [diff] [blame] | 10 | #include <string> |
11 | |||||
[email protected] | bca3494 | 2012-09-05 18:23:25 | [diff] [blame] | 12 | |
13 | namespace metrics { | ||||
14 | |||||
avi | 5dd91f8 | 2015-12-25 22:30:46 | [diff] [blame] | 15 | // 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. | ||||
17 | uint32_t HashName(const std::string& name); | ||||
[email protected] | bca3494 | 2012-09-05 18:23:25 | [diff] [blame] | 18 | |
19 | } // namespace metrics | ||||
20 | |||||
[email protected] | 50ae9f1 | 2013-08-29 18:03:22 | [diff] [blame] | 21 | #endif // COMPONENTS_VARIATIONS_METRICS_UTIL_H_ |