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

Unified Diff: components/os_crypt/os_crypt_mac.mm

Issue 714273004: mac: Expose keychain access frequency to Telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mock_keychain_sleep
Patch Set: Add a common subclass to measurements. Created 6 years, 1 month 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
Index: components/os_crypt/os_crypt_mac.mm
diff --git a/components/os_crypt/os_crypt_mac.mm b/components/os_crypt/os_crypt_mac.mm
index e83afafec85dd7dd5a63c9b875c198e063cbbd54..818a0f736e3d06e261d05191bac4315ab3074798 100644
--- a/components/os_crypt/os_crypt_mac.mm
+++ b/components/os_crypt/os_crypt_mac.mm
@@ -62,6 +62,7 @@ crypto::SymmetricKey* GetEncryptionKey() {
// takes 4.6ms with a SSD, 3 GHz Intel Xeon. On a slower processor with a
// HDD, this probably takes 4x as long.
base::SpinCpuMicroseconds(18400);
+ base::EmitAccessKeychainHistogram();
password = "mock_password";
} else {

Powered by Google App Engine
This is Rietveld 408576698