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

Unified Diff: devil/devil/android/forwarder.py

Issue 2775793002: [devil] Use AdbWrapper.GetAdbPath in devil.android.forwarder (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/forwarder.py
diff --git a/devil/devil/android/forwarder.py b/devil/devil/android/forwarder.py
index 9f6ed01a845e9347857224700ba32d4ac41cc103..244f555af4f75db5a6b7a037adf9188b6585c0d3 100644
--- a/devil/devil/android/forwarder.py
+++ b/devil/devil/android/forwarder.py
@@ -13,6 +13,7 @@ from devil import base_error
from devil import devil_env
from devil.android import device_errors
from devil.android.constants import file_system
+from devil.android.sdk import adb_wrapper
from devil.android.valgrind_tools import base_tool
from devil.utils import cmd_helper
@@ -130,7 +131,7 @@ class Forwarder(object):
device_serial = str(device)
map_arg_lists = [
- ['--adb=' + devil_env.config.FetchPath('adb'),
+ ['--adb=' + adb_wrapper.AdbWrapper.GetAdbPath(),
'--serial-id=' + device_serial,
'--map', str(device_port), str(host_port)]
for device_port, host_port in port_pairs]
@@ -203,7 +204,7 @@ class Forwarder(object):
instance = Forwarder._GetInstanceLocked(None)
unmap_all_cmd = [
instance._host_forwarder_path,
- '--adb=%s' % devil_env.config.FetchPath('adb'),
+ '--adb=%s' % adb_wrapper.AdbWrapper.GetAdbPath(),
'--serial-id=%s' % device.serial,
'--unmap-all'
]
@@ -307,7 +308,7 @@ class Forwarder(object):
unmap_cmd = [
instance._host_forwarder_path,
- '--adb=%s' % devil_env.config.FetchPath('adb'),
+ '--adb=%s' % adb_wrapper.AdbWrapper.GetAdbPath(),
'--serial-id=%s' % serial,
'--unmap', str(device_port)
]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698