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

Unified Diff: tools/telemetry/telemetry/page/actions/play.py

Issue 277143003: Add NavigateToPage API for action_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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/telemetry/telemetry/page/actions/play.py
diff --git a/tools/telemetry/telemetry/page/actions/play.py b/tools/telemetry/telemetry/page/actions/play.py
index bb32b583020c267321cee63a3d8410bc9623656c..c81c4336da49db81db5d3904d1947b55a2b47522 100644
--- a/tools/telemetry/telemetry/page/actions/play.py
+++ b/tools/telemetry/telemetry/page/actions/play.py
@@ -21,12 +21,12 @@ class PlayAction(media_action.MediaAction):
def __init__(self, attributes=None):
super(PlayAction, self).__init__(attributes)
- def WillRunAction(self, page, tab):
+ def WillRunAction(self, tab):
"""Load the media metrics JS code prior to running the action."""
- super(PlayAction, self).WillRunAction(page, tab)
+ super(PlayAction, self).WillRunAction(tab)
self.LoadJS(tab, 'play.js')
- def RunAction(self, page, tab):
+ def RunAction(self, tab):
try:
selector = self.selector if hasattr(self, 'selector') else ''
tab.ExecuteJavaScript('window.__playMedia("%s");' % selector)
« no previous file with comments | « tools/telemetry/telemetry/page/actions/pinch.py ('k') | tools/telemetry/telemetry/page/actions/play_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698