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

Unified Diff: build/android/pylib/perf/perf_control.py

Issue 338353004: [Android] Switch KillAll, StartActivity, and BroadcastIntent to DeviceUtils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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: build/android/pylib/perf/perf_control.py
diff --git a/build/android/pylib/perf/perf_control.py b/build/android/pylib/perf/perf_control.py
index 1c88945e2d19592203af90aeca57df9fef0c0382..3d140598168ee60cc33750f850407f84fea0062e 100644
--- a/build/android/pylib/perf/perf_control.py
+++ b/build/android/pylib/perf/perf_control.py
@@ -73,11 +73,11 @@ class PerfControl(object):
"""
def ForceCpuOnline(online_path):
script = 'chmod 644 {0}; echo 1 > {0}; chmod 444 {0}'.format(online_path)
- self._device.RunShellCommand(script, root=True)
+ self._device.RunShellCommand(script, as_root=True)
return self._device.old_interface.GetFileContents(online_path)[0] == '1'
def ResetCpu(online_path):
- self._device.RunShellCommand('chmod 644 %s' % online_path, root=True)
+ self._device.RunShellCommand('chmod 644 %s' % online_path, as_root=True)
def WaitFor(condition):
for _ in range(100):

Powered by Google App Engine
This is Rietveld 408576698