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

Unified Diff: tools/android/adb_profile_chrome/perf_controller.py

Issue 358993003: [Android] Switch to DeviceUtils versions of file functions. (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: tools/android/adb_profile_chrome/perf_controller.py
diff --git a/tools/android/adb_profile_chrome/perf_controller.py b/tools/android/adb_profile_chrome/perf_controller.py
index aeb29fd0eea93cfe5fc0c40539c6956e58b5f0ae..c7d573e407596c3fd6e8df2a50433b828ec4f42d 100644
--- a/tools/android/adb_profile_chrome/perf_controller.py
+++ b/tools/android/adb_profile_chrome/perf_controller.py
@@ -75,14 +75,12 @@ class _PerfProfiler(object):
raise RuntimeError('%s. Log output:\n%s' % (msg, log))
def PullResult(self, output_path):
- if not self._device.old_interface.FileExistsOnDevice(
- self._output_file.name):
+ if not self._device.FileExists(self._output_file.name):
self._FailWithLog('Perf recorded no data')
perf_profile = os.path.join(output_path,
os.path.basename(self._output_file.name))
- self._device.old_interface.PullFileFromDevice(self._output_file.name,
- perf_profile)
+ self._device.PullFile(self._output_file.name, perf_profile)
if not os.stat(perf_profile).st_size:
os.remove(perf_profile)
self._FailWithLog('Perf recorded a zero-sized file')

Powered by Google App Engine
This is Rietveld 408576698