Index: crypto/mock_apple_keychain.cc |
diff --git a/crypto/mock_apple_keychain.cc b/crypto/mock_apple_keychain.cc |
index 1ddfc8679461c6fddf320642405dc31f98643c0b..df5e845a67cd528e216bf35e7900f1df53538995 100644 |
--- a/crypto/mock_apple_keychain.cc |
+++ b/crypto/mock_apple_keychain.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/logging.h" |
+#include "base/perf_util.h" |
#include "base/time/time.h" |
#include "crypto/mock_apple_keychain.h" |
@@ -17,6 +18,8 @@ OSStatus MockAppleKeychain::FindGenericPassword( |
UInt32* passwordLength, |
void** passwordData, |
SecKeychainItemRef* itemRef) const { |
+ base::IncrementKeychainAccessHistogram(); |
+ |
// When simulating |noErr|, return canned |passwordData| and |
// |passwordLength|. Otherwise, just return given code. |
if (find_generic_result_ == noErr) { |
@@ -48,6 +51,8 @@ OSStatus MockAppleKeychain::AddGenericPassword( |
UInt32 passwordLength, |
const void* passwordData, |
SecKeychainItemRef* itemRef) const { |
+ base::IncrementKeychainAccessHistogram(); |
+ |
called_add_generic_ = true; |
DCHECK_GT(passwordLength, 0U); |