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

Unified Diff: base/mac/keychain_metrics.cc

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
Index: base/mac/keychain_metrics.cc
diff --git a/base/critical_closure_internal_ios.mm b/base/mac/keychain_metrics.cc
similarity index 50%
copy from base/critical_closure_internal_ios.mm
copy to base/mac/keychain_metrics.cc
index b8fec141b2198e53c2b8e2d4826a1fba7edc0212..65dc29c9d414ed43dbe9d47de0e7617e19531ad8 100644
--- a/base/critical_closure_internal_ios.mm
+++ b/base/mac/keychain_metrics.cc
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/critical_closure.h"
+#include "base/mac/keychain_metrics.h"
-#import <UIKit/UIKit.h>
+#include "base/metrics/histogram.h"
namespace base {
-namespace internal {
+namespace mac {
-bool IsMultiTaskingSupported() {
- return [[UIDevice currentDevice] isMultitaskingSupported];
+void IncrementKeychainAccessHistogram() {
+ LOCAL_HISTOGRAM_BOOLEAN("OSX.Keychain.Access", true);
}
-} // namespace internal
+} // namespace mac
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698