Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3265)

Unified Diff: base/mac/keychain_metrics.h

Issue 714273004: mac: Expose keychain access frequency to Telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mock_keychain_sleep
Patch Set: Minor updates to base/mac/keychain_metrics.h. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base.gypi ('k') | base/mac/keychain_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d1d2fe5d1ccc7db4d2601123ceaa3065d866cbc0
--- /dev/null
+++ b/base/mac/keychain_metrics.h
@@ -0,0 +1,23 @@
+// 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"
+
+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();
Lei Zhang 2014/12/15 22:27:02 How about moving this to crypto/apple_keychain.h ?
erikchen 2014/12/15 23:16:10 Good suggestion. I moved all histogram emission in
+
+} // namespace mac
+} // namespace base
+
+#endif // BASE_MAC_KEYCHAIN_METRICS_H_
« no previous file with comments | « base/base.gypi ('k') | base/mac/keychain_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698