summaryrefslogtreecommitdiffstats
path: root/build/android/pylib/perf/perf_control.py
diff options
context:
space:
mode:
authorjbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-25 05:09:06 +0000
committerjbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-25 05:09:06 +0000
commit402e54cdd29cdb022edaebcbe4e0ba44662647c6 (patch)
tree3804b88c2b65692f27df8a4f92cba6dc37110f41 /build/android/pylib/perf/perf_control.py
parentacbb5366e5b2299fe1868938ec5e9876baa10f98 (diff)
downloadchromium_src-402e54cdd29cdb022edaebcbe4e0ba44662647c6.zip
chromium_src-402e54cdd29cdb022edaebcbe4e0ba44662647c6.tar.gz
chromium_src-402e54cdd29cdb022edaebcbe4e0ba44662647c6.tar.bz2
[Android] Switch KillAll, StartActivity, and BroadcastIntent to DeviceUtils.
BUG=267773 Review URL: https://codereview.chromium.org/338353004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/pylib/perf/perf_control.py')
-rw-r--r--build/android/pylib/perf/perf_control.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/android/pylib/perf/perf_control.py b/build/android/pylib/perf/perf_control.py
index 6a636e7..0b32dd8 100644
--- a/build/android/pylib/perf/perf_control.py
+++ b/build/android/pylib/perf/perf_control.py
@@ -90,7 +90,7 @@ class PerfControl(object):
"""
if self._have_mpdecision:
script = 'stop mpdecision' if force_online else 'start mpdecision'
- self._device.RunShellCommand(script, root=True)
+ self._device.RunShellCommand(script, as_root=True)
if not self._have_mpdecision and not self._AllCpusAreOnline():
logging.warning('Unexpected cpu hot plugging detected.')