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

Unified Diff: telemetry/telemetry/internal/actions/play.py

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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: telemetry/telemetry/internal/actions/play.py
diff --git a/telemetry/telemetry/internal/actions/play.py b/telemetry/telemetry/internal/actions/play.py
index dfa0af2da8e0cb5115308224c4618d074ed664dd..d5826ce7257bab887da536688f9dd6fae263306a 100644
--- a/telemetry/telemetry/internal/actions/play.py
+++ b/telemetry/telemetry/internal/actions/play.py
@@ -16,6 +16,7 @@ playing and ended events get fired respectively.
from telemetry.core import exceptions
from telemetry.internal.actions import media_action
from telemetry.internal.actions import page_action
+from telemetry.internal.actions import utils
class PlayAction(media_action.MediaAction):
@@ -30,7 +31,7 @@ class PlayAction(media_action.MediaAction):
def WillRunAction(self, tab):
"""Load the media metrics JS code prior to running the action."""
super(PlayAction, self).WillRunAction(tab)
- self.LoadJS(tab, 'play.js')
+ utils.InjectJavaScript(tab, 'play.js')
def RunAction(self, tab):
try:
« no previous file with comments | « telemetry/telemetry/internal/actions/pinch.py ('k') | telemetry/telemetry/internal/actions/repeatable_scroll.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698