DevTools: wrong event was used as an indicator of finished write operation.
DevTools: wrong event was used as an indicator of finished write operation.

FileWriter calls onwrite as notification about the progress of writing.
So If we call write again from the onwrite event handler FileWriter fails to do that.
Actually we need to use onwriteend callback.

BUG=423843

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

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@183886 bbb929c8-8fbe-4397-9dbb-9b2b20218538

modulexcite/blink,jtg-gg/blink,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,Bysmyyr/blink-crosswalk,jtg-gg/blink,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,modulexcite/blink,smishenk/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,jtg-gg/blink,modulexcite/blink,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,nwjs/blink,modulexcite/blink,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,jtg-gg/blink,nwjs/blink,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,nwjs/blink,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,modulexcite/blink,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,PeterWangIntel/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,nwjs/blink,jtg-gg/blink,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,kurli/blink-crosswalk