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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « base/base.gypi ('k') | base/mac/keychain_metrics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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
5 #ifndef BASE_MAC_KEYCHAIN_METRICS_H_
6 #define BASE_MAC_KEYCHAIN_METRICS_H_
7
8 #include "base/base_export.h"
9
10 namespace base {
11 namespace mac {
12
13 // Adds an entry to a local histogram to indicate that the keychain was
14 // accessed. This function should be called each time the keychain is accessed
15 // so that the number of entries in the histogram corresponds to the number of
16 // times that the keychain is accessed. This local histogram is used by
17 // Telemetry to track the number of times the keychain is accessed.
18 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
19
20 } // namespace mac
21 } // namespace base
22
23 #endif // BASE_MAC_KEYCHAIN_METRICS_H_
OLDNEW
« 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