| 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)
|
|
|