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

Unified Diff: tools/telemetry/telemetry/page/actions/media_action.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/media_action.py
diff --git a/tools/telemetry/telemetry/page/actions/media_action.py b/tools/telemetry/telemetry/page/actions/media_action.py
index 85da6ed35fc9202cdbb898a2fa51f1a69089e744..c62bd207e1bea7a4d7c4592206ee1f9f8d6b75ad 100644
--- a/tools/telemetry/telemetry/page/actions/media_action.py
+++ b/tools/telemetry/telemetry/page/actions/media_action.py
@@ -12,12 +12,12 @@ from telemetry.page.actions import page_action
class MediaAction(page_action.PageAction):
- def WillRunAction(self, page, tab):
+ def WillRunAction(self, tab):
"""Loads the common media action JS code prior to running the action."""
self.LoadJS(tab, 'media_action.js')
- def RunAction(self, page, tab):
- super(MediaAction, self).RunAction(page, tab)
+ def RunAction(self, tab):
+ super(MediaAction, self).RunAction(tab)
def LoadJS(self, tab, js_file_name):
"""Loads and executes a JS file in the tab."""
« no previous file with comments | « tools/telemetry/telemetry/page/actions/loop_unittest.py ('k') | tools/telemetry/telemetry/page/actions/navigate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698