Bug Fix: Video file name not updated properly.

BUG=

Review URL: https://codereview.chromium.org/396023002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283386 0039d316-1c4b-4281-b951-d872f2087c98
parent 58240a72
...@@ -84,7 +84,7 @@ class VideoRecorder(object): ...@@ -84,7 +84,7 @@ class VideoRecorder(object):
""" """
host_file_name = host_file or ('screen-recording-%s.mp4' % host_file_name = host_file or ('screen-recording-%s.mp4' %
self._device.old_interface.GetTimestamp()) self._device.old_interface.GetTimestamp())
host_file = os.path.abspath(host_file_name) host_file_name = os.path.abspath(host_file_name)
self._device.old_interface.EnsureHostDirectory(self._host_file) self._device.old_interface.EnsureHostDirectory(host_file_name)
self._device.PullFile(self._device_file, host_file_name) self._device.PullFile(self._device_file, host_file_name)
self._device.RunShellCommand('rm -f "%s"' % self._device_file) self._device.RunShellCommand('rm -f "%s"' % self._device_file)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment