metrics_util.h 636 B

12345678910111213141516
  1. // Copyright 2020 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. #ifndef IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_METRICS_UTIL_H_
  5. #define IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_METRICS_UTIL_H_
  6. #import <Foundation/Foundation.h>
  7. // Increases by 1 the app group shared metrics count for given key.
  8. void UpdateUMACountForKey(NSString* key);
  9. // Increases the count for the given histogram and bucket by 1.
  10. void UpdateHistogramCount(NSString* histogram, int bucket);
  11. #endif // IOS_CHROME_CREDENTIAL_PROVIDER_EXTENSION_METRICS_UTIL_H_