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

Unified Diff: tools/telemetry/telemetry/core/platform/device.py

Issue 564173002: (Telemetry) Rename Device.device_id to Device.guid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « tools/telemetry/telemetry/core/platform/cros_device.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/platform/device.py
diff --git a/tools/telemetry/telemetry/core/platform/device.py b/tools/telemetry/telemetry/core/platform/device.py
index 5c0730165cb2dcaf123e4fbd69a71908155b247c..bb21a1e4530620eb023a99250846930731211ebe 100644
--- a/tools/telemetry/telemetry/core/platform/device.py
+++ b/tools/telemetry/telemetry/core/platform/device.py
@@ -11,22 +11,22 @@ class Device(object):
Attributes:
name: A device name string in human-understandable term.
- device_id: A unique id of the device. Subclass of device must specify this
+ guid: A unique id of the device. Subclass of device must specify this
id properly so that device objects to a same actual device must have same
- device_id.
+ guid.
"""
- def __init__(self, name, device_id):
+ def __init__(self, name, guid):
self._name = name
- self._device_id = device_id
+ self._guid = guid
@property
def name(self):
return self._name
@property
- def device_id(self):
- return self._device_id
+ def guid(self):
+ return self._guid
@classmethod
def GetAllConnectedDevices(cls, logging=real_logging):
« no previous file with comments | « tools/telemetry/telemetry/core/platform/cros_device.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698