Index: build/android/pylib/valgrind_tools.py |
diff --git a/build/android/pylib/valgrind_tools.py b/build/android/pylib/valgrind_tools.py |
index 8f845fbf1e956d519d0440f769d55275b5d01332..f11ab03c68390fadfed1510ea6757548a8e8e0c4 100644 |
--- a/build/android/pylib/valgrind_tools.py |
+++ b/build/android/pylib/valgrind_tools.py |
@@ -39,7 +39,7 @@ def SetChromeTimeoutScale(device, scale): |
# Delete if scale is None/0.0/1.0 since the default timeout scale is 1.0 |
device.RunShellCommand('rm %s' % path) |
else: |
- device.old_interface.SetProtectedFileContents(path, '%f' % scale) |
+ device.WriteFile(path, '%f' % scale, as_root=True) |
class BaseTool(object): |
@@ -173,7 +173,7 @@ class ValgrindTool(BaseTool): |
ValgrindTool.VGLOGS_DIR)) |
files = self.GetFilesForTool() |
for f in files: |
- self._device.old_interface.PushIfNeeded( |
+ self._device.PushChangedFiles( |
os.path.join(DIR_SOURCE_ROOT, f), |
os.path.join(ValgrindTool.VG_DIR, os.path.basename(f))) |