[Nit] Use write_text_file directly instead of open_text_file_for_writing followed by write

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182166 bbb929c8-8fbe-4397-9dbb-9b2b20218538