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

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

Issue 562243004: Revert of Change PageTest.WillStartBrowser to depend on platform instead of browser object as it would not ha… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « tools/perf/measurements/memory.py ('k') | tools/perf/measurements/page_cycler_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/page_cycler.py
diff --git a/tools/perf/measurements/page_cycler.py b/tools/perf/measurements/page_cycler.py
index 08673e85134831fb42a5e74b4ed61d8451fb81dc..84c9dc25aa6f744de1491e3f1a6cfb46ad826628 100644
--- a/tools/perf/measurements/page_cycler.py
+++ b/tools/perf/measurements/page_cycler.py
@@ -83,9 +83,9 @@
else:
cls._cold_run_start_index = args.pageset_repeat * args.page_repeat
- def WillStartBrowser(self, platform):
+ def WillStartBrowser(self, browser):
"""Initialize metrics once right before the browser has been launched."""
- self._power_metric = power.PowerMetric(platform)
+ self._power_metric = power.PowerMetric(browser)
def DidStartBrowser(self, browser):
"""Initialize metrics once right after the browser has been launched."""
« no previous file with comments | « tools/perf/measurements/memory.py ('k') | tools/perf/measurements/page_cycler_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698