| Index: base/mac/keychain_metrics.h
|
| diff --git a/base/mac/keychain_metrics.h b/base/mac/keychain_metrics.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..754c6cb462f0177095a06c1851366f318b5fd471
|
| --- /dev/null
|
| +++ b/base/mac/keychain_metrics.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef BASE_MAC_KEYCHAIN_METRICS_H_
|
| +#define BASE_MAC_KEYCHAIN_METRICS_H_
|
| +
|
| +#include "base/base_export.h"
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace base {
|
| +namespace mac {
|
| +
|
| +// Adds an entry to a local histogram to indicate that the keychain was
|
| +// accessed. This function should be called each time the keychain is accessed
|
| +// so that the number of entries in the histogram corresponds to the number of
|
| +// times that the keychain is accessed.
|
| +//
|
| +// This local histogram is used by telemetry to track the number of times the
|
| +// keychain is accessed.
|
| +BASE_EXPORT void IncrementKeychainAccessHistogram();
|
| +
|
| +} // namespace mac
|
| +} // namespace base
|
| +
|
| +#endif // BASE_MAC_KEYCHAIN_METRICS_H_
|
|
|