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

Unified Diff: tools/profile_chrome/main.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/main.py
diff --git a/tools/profile_chrome/main.py b/tools/profile_chrome/main.py
index 25adbfb6515e333d5d9a8c8cffdaebd50bc302db..83c29f1d97da52dedd5413e643ed785783b3d3c6 100755
--- a/tools/profile_chrome/main.py
+++ b/tools/profile_chrome/main.py
@@ -18,7 +18,6 @@ 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
@@ -170,7 +169,7 @@ When in doubt, just try out --trace-frame-viewer.
if options.verbose:
logging.getLogger().setLevel(logging.DEBUG)
- devices = android_commands.GetAttachedDevices()
+ devices = device_utils.DeviceUtils.HealthyDevices()
device = None
if options.device in devices:
device = options.device
Sami 2015/05/12 18:37:09 This is supposed to select a device based on seria
jbudorick 2015/05/13 03:21:22 Yeah, this is actually a mistake I've made elsewhe
@@ -178,7 +177,6 @@ When in doubt, just try out --trace-frame-viewer.
device = devices[0]
if not device:
parser.error('Use -d/--device to select a device:\n' + '\n'.join(devices))
- device = device_utils.DeviceUtils(device)
package_info = profiler.GetSupportedBrowsers()[options.browser]
if options.chrome_categories in ['list', 'help']:

Powered by Google App Engine
This is Rietveld 408576698