1 // Copyright 2018 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef COMPONENTS_METRICS_EXPIRED_HISTOGRAM_UTIL_H_ 6 #define COMPONENTS_METRICS_EXPIRED_HISTOGRAM_UTIL_H_ 7 8 #include <stddef.h> 9 #include <stdint.h> 10 11 namespace metrics { 12 13 // Enables histogram expiry checker if it is enabled by field trial. Histogram 14 // expiry is disbaled by default so that unit tests don't fail unexpectedly when 15 // a histogram expires. 16 void EnableExpiryChecker(const uint32_t* expired_histograms_hashes, 17 size_t num_expired_histograms); 18 19 } // namespace metrics 20 21 #endif // COMPONENTS_METRICS_EXPIRED_HISTOGRAM_UTIL_H_