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

Unified Diff: tools/profile_chrome_startup.py

Issue 1132993004: [Android] Remove more references to and uses of AndroidCommands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/profile_chrome_startup.py
diff --git a/tools/profile_chrome_startup.py b/tools/profile_chrome_startup.py
index 5620907a2a92807e83ea303d4878993f2ab759a4..632e363694dc54917f08fdd5b43179c43f67a5cb 100755
--- a/tools/profile_chrome_startup.py
+++ b/tools/profile_chrome_startup.py
@@ -19,7 +19,6 @@ from profile_chrome import flags
from profile_chrome import profiler
from profile_chrome import systrace_controller
from profile_chrome import ui
-from pylib import android_commands
from pylib.device import device_utils
@@ -58,11 +57,11 @@ def main():
if options.verbose:
logging.getLogger().setLevel(logging.DEBUG)
- devices = android_commands.GetAttachedDevices()
+ devices = device_utils.DeviceUtils.HealthyDevices()
if len(devices) != 1:
logging.error('Exactly 1 device must be attached.')
return 1
- device = device_utils.DeviceUtils(devices[0])
+ device = devices[0]
package_info = profiler.GetSupportedBrowsers()[options.browser]
if options.systrace_categories in ['list', 'help']:
« no previous file with comments | « tools/profile_chrome/perf_controller.py ('k') | tools/telemetry/telemetry/core/forwarders/android_forwarder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698