Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1286)

Unified Diff: webkit/plugins/ppapi/quota_file_io.cc

Issue 15984016: Call scoped_refptr<T>::get() rather than relying on implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/renderer/media/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698