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

Unified Diff: tools/telemetry/telemetry/adb_commands.py

Issue 11784007: [Telemetry] Allow telemetry to run without adb root. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix application quitting Created 7 years, 12 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 | tools/telemetry/telemetry/android_browser_backend.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/adb_commands.py
diff --git a/tools/telemetry/telemetry/adb_commands.py b/tools/telemetry/telemetry/adb_commands.py
index 86d6bdef81666a25498e420528612ea1ded12e57..6836689c334285522f4531dcde49c3d2c058ae09 100644
--- a/tools/telemetry/telemetry/adb_commands.py
+++ b/tools/telemetry/telemetry/adb_commands.py
@@ -78,6 +78,15 @@ class AdbCommands(object):
"""
return self._adb.RunShellCommand(command, timeout_time, log_result)
+ def CloseApplication(self, package):
+ """Attempt to close down the application, using increasing violence.
+
+ Args:
+ package: Name of the process to kill off, e.g.
+ com.google.android.apps.chrome
+ """
+ self._adb.CloseApplication(package)
+
def KillAll(self, process):
"""Android version of killall, connected via adb.
« no previous file with comments | « no previous file | tools/telemetry/telemetry/android_browser_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698