Index: build/android/pylib/valgrind_tools.py |
diff --git a/build/android/pylib/valgrind_tools.py b/build/android/pylib/valgrind_tools.py |
index 81428939f52d14ce22be8c990a554929e8e49964..986d0cb3eeb733c76e15a8748bfcc8ad2329f91d 100644 |
--- a/build/android/pylib/valgrind_tools.py |
+++ b/build/android/pylib/valgrind_tools.py |
@@ -20,7 +20,7 @@ def SetChromeTimeoutScale(device, scale): |
path = '/data/local/tmp/chrome_timeout_scale' |
if not scale or scale == 1.0: |
# Delete if scale is None/0.0/1.0 since the default timeout scale is 1.0 |
- device.RunShellCommand('rm %s' % path) |
+ device.RemovePath(path, force=True, as_root=True) |
else: |
device.WriteFile(path, '%f' % scale, as_root=True) |