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

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

Issue 640813002: Revert of Move remote platforms creation logic from android_browser_finder to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/platform/cros_platform_backend.py
diff --git a/tools/telemetry/telemetry/core/platform/cros_platform_backend.py b/tools/telemetry/telemetry/core/platform/cros_platform_backend.py
index 26b665a0d270a57267cea3b7f2dc548d107f8e2a..9e07f04c1424b377723bd0cc9b68c1e447c2df24 100644
--- a/tools/telemetry/telemetry/core/platform/cros_platform_backend.py
+++ b/tools/telemetry/telemetry/core/platform/cros_platform_backend.py
@@ -2,8 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from telemetry.core.platform import cros_device
-from telemetry.core.platform import cros_interface
from telemetry.core.platform import linux_based_platform_backend
from telemetry.core.platform import ps_util
from telemetry.core.platform.power_monitor import cros_power_monitor
@@ -12,19 +10,10 @@
class CrosPlatformBackend(
linux_based_platform_backend.LinuxBasedPlatformBackend):
- def __init__(self, device):
- super(CrosPlatformBackend, self).__init__(device)
- if device:
- self._cri = cros_interface.CrOSInterface(
- device.host_name, device.ssh_identity)
- self._cri.TryLogin()
- else:
- self._cri = cros_interface.CrOSInterface()
+ def __init__(self, cri):
+ super(CrosPlatformBackend, self).__init__()
+ self._cri = cri
self._powermonitor = cros_power_monitor.CrosPowerMonitor(self)
-
- @classmethod
- def SupportsDevice(cls, device):
- return isinstance(device, cros_device.CrOSDevice)
@property
def cri(self):
« no previous file with comments | « tools/telemetry/telemetry/core/platform/cros_device.py ('k') | tools/telemetry/telemetry/core/platform/device.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698