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

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

Issue 44883004: [telemetry] Move tab from RunState to PageState. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months 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/image_decoding.py
diff --git a/tools/perf/measurements/image_decoding.py b/tools/perf/measurements/image_decoding.py
index e838bfbf887a31a0f244136a6579a47e9e3e7332..7207891a5166ddb4e794dca0a4d5ae5fbb2c34cd 100644
--- a/tools/perf/measurements/image_decoding.py
+++ b/tools/perf/measurements/image_decoding.py
@@ -19,8 +19,8 @@ class ImageDecoding(page_measurement.PageMeasurement):
""")
tab.StartTimelineRecording()
- def NeedsBrowserRestartAfterEachRun(self, tab):
- return not tab.ExecuteJavaScript("""
+ def NeedsBrowserRestartAfterEachRun(self, browser):
+ return not browser.tabs[0].ExecuteJavaScript("""
window.chrome &&
chrome.gpuBenchmarking &&
chrome.gpuBenchmarking.clearImageCache;

Powered by Google App Engine
This is Rietveld 408576698