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

Unified Diff: tools/perf/measurements/startup.py

Issue 714273004: mac: Expose keychain access frequency to Telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mock_keychain_sleep
Patch Set: Respond to offline comments from tonyg. 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: tools/perf/measurements/startup.py
diff --git a/tools/perf/measurements/startup.py b/tools/perf/measurements/startup.py
index bc0617d593f6e07930fdcf87fba1d247b7a3b6ad..2613c376b3bdbeb0386c77fb78fbb79bc975854e 100644
--- a/tools/perf/measurements/startup.py
+++ b/tools/perf/measurements/startup.py
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from metrics import keychain_metric
from metrics import startup_metric
from telemetry.page import page_test
@@ -29,12 +30,16 @@ class Startup(page_test.PageTest):
options.AppendExtraBrowserArgs([
'--enable-stats-collection-bindings'
])
+ if keychain_metric.KeychainMetric.ShouldCollectKeychainMetrics():
+ keychain_metric.KeychainMetric.CustomizeBrowserOptions(options)
def RunNavigateSteps(self, page, tab):
# Overriden so that no page navigation occurs - startup to the NTP.
pass
def ValidateAndMeasurePage(self, page, tab, results):
+ if keychain_metric.KeychainMetric.ShouldCollectKeychainMetrics():
+ keychain_metric.KeychainMetric().AddResults(tab, results)
startup_metric.StartupMetric().AddResults(tab, results)

Powered by Google App Engine
This is Rietveld 408576698