Move the flush in AppendCommandsToFile outside the loop.
This flush is being called every time we write one single command to the file, causing hundreds of flushes every 2.5s. This is causing jankiness. There is no reason to keep this flush inside the loop, please see the bug for additional details.

R=marja@chromium.org
BUG=245015

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265345 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed