Index: webkit/plugins/ppapi/quota_file_io.cc |
diff --git a/webkit/plugins/ppapi/quota_file_io.cc b/webkit/plugins/ppapi/quota_file_io.cc |
index a86dc0472bd9b2eb97fbb09be20dabf68da17584..40fe532f015e75ba16729ae246d82d5d0d93cc35 100644 |
--- a/webkit/plugins/ppapi/quota_file_io.cc |
+++ b/webkit/plugins/ppapi/quota_file_io.cc |
@@ -108,10 +108,13 @@ class QuotaFileIO::WriteOperation : public PendingOperationBase { |
} |
if (!base::PostTaskAndReplyWithResult( |
- plugin_delegate->GetFileThreadMessageLoopProxy(), FROM_HERE, |
+ plugin_delegate->GetFileThreadMessageLoopProxy().get(), |
+ FROM_HERE, |
base::Bind(&WriteAdapter, |
- quota_io_->file_, offset_, |
- base::Passed(&buffer_), bytes_to_write_), |
+ quota_io_->file_, |
+ offset_, |
+ base::Passed(&buffer_), |
+ bytes_to_write_), |
base::Bind(&WriteOperation::DidWrite, |
weak_factory_.GetWeakPtr()))) { |
DidFail(base::PLATFORM_FILE_ERROR_FAILED); |
@@ -195,8 +198,9 @@ class QuotaFileIO::SetLengthOperation : public PendingOperationBase { |
} |
if (!base::FileUtilProxy::Truncate( |
- plugin_delegate->GetFileThreadMessageLoopProxy(), |
- quota_io_->file_, length_, |
+ plugin_delegate->GetFileThreadMessageLoopProxy().get(), |
+ quota_io_->file_, |
+ length_, |
base::Bind(&SetLengthOperation::DidFinish, |
weak_factory_.GetWeakPtr()))) { |
DidFail(base::PLATFORM_FILE_ERROR_FAILED); |
@@ -306,7 +310,8 @@ bool QuotaFileIO::RegisterOperationForQuotaChecks( |
// Query the file size. |
++outstanding_quota_queries_; |
if (!base::FileUtilProxy::GetFileInfoFromPlatformFile( |
- plugin_delegate->GetFileThreadMessageLoopProxy(), file_, |
+ plugin_delegate->GetFileThreadMessageLoopProxy().get(), |
+ file_, |
base::Bind(&QuotaFileIO::DidQueryInfoForQuota, |
weak_factory_.GetWeakPtr()))) { |
// This makes the call fail synchronously; we do not fire the callback |