Move more printing code off of the FILE thread.

Do some trivial cleanups while we are here.

BUG=689520

Review-Url: https://codereview.chromium.org/2965803002
Cr-Commit-Position: refs/heads/master@{#483845}
3 files changed