summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi
diff options
context:
space:
mode:
authorkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 05:31:19 +0000
committerkinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-13 05:31:19 +0000
commit8fe3d01a56be0869c9bc1d9a1020706c0cec5258 (patch)
tree9718962a3e53fa10323d63fa3d43db1781825b6d /webkit/fileapi
parented7070ebdea12c1a9117bf7ecda311dec1eee400 (diff)
downloadchromium_src-8fe3d01a56be0869c9bc1d9a1020706c0cec5258.zip
chromium_src-8fe3d01a56be0869c9bc1d9a1020706c0cec5258.tar.gz
chromium_src-8fe3d01a56be0869c9bc1d9a1020706c0cec5258.tar.bz2
FileWriter flaky crash another fix attempt
BUG=116639 TEST=fast/filesystem/file-writer-abort.html Review URL: http://codereview.chromium.org/9689049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi')
-rw-r--r--webkit/fileapi/file_writer_delegate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/fileapi/file_writer_delegate.cc b/webkit/fileapi/file_writer_delegate.cc
index 577e796..d95e00b 100644
--- a/webkit/fileapi/file_writer_delegate.cc
+++ b/webkit/fileapi/file_writer_delegate.cc
@@ -245,7 +245,7 @@ void FileWriterDelegate::Write() {
file_stream_->Write(cursor_,
static_cast<int>(bytes_to_write),
base::Bind(&FileWriterDelegate::OnDataWritten,
- base::Unretained(this)));
+ weak_factory_.GetWeakPtr()));
if (write_response > 0)
MessageLoop::current()->PostTask(
FROM_HERE,