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

Unified Diff: tools/telemetry/telemetry/core/possible_app.py

Issue 760653002: Telemetry --device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: browser selection Created 5 years, 11 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/core/possible_app.py
diff --git a/tools/telemetry/telemetry/core/possible_app.py b/tools/telemetry/telemetry/core/possible_app.py
index 9e065dc21d0aa6f170337c6b728d519e6fdadb63..07c6a26d4759c8327a0a65883e733c762c336998 100644
--- a/tools/telemetry/telemetry/core/possible_app.py
+++ b/tools/telemetry/telemetry/core/possible_app.py
@@ -9,9 +9,10 @@ class PossibleApp(object):
Call Create() to launch the app and begin manipulating it.
"""
- def __init__(self, app_type, target_os):
+ def __init__(self, app_type, target_os, device_id):
self._app_type = app_type
self._target_os = target_os
+ self._device_id = device_id
self._platform = None
self._platform_backend = None
@@ -28,6 +29,11 @@ class PossibleApp(object):
return self._target_os
@property
+ def device_id(self):
+ """The ID of the device the app will run on."""
+ return self._device_id
+
+ @property
def platform(self):
self._InitPlatformIfNeeded()
return self._platform

Powered by Google App Engine
This is Rietveld 408576698