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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.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
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index 4a0be19471335265b381286ef687de855017dc27..92a7b2ce9087033aba0afe2393888ca3978c68d3 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -286,7 +286,8 @@ void DidOpenFileSystemURL(
// Make sure we won't leak file handle if the requester has died.
if (file != base::kInvalidPlatformFileValue) {
base::FileUtilProxy::Close(
- RenderThreadImpl::current()->GetFileThreadMessageLoopProxy(), file,
+ RenderThreadImpl::current()->GetFileThreadMessageLoopProxy().get(),
+ file,
base::Bind(&DoNotifyCloseFile, file_open_id));
}
}
@@ -965,7 +966,8 @@ void PepperPluginDelegateImpl::OnAsyncFileOpened(
callback->Run(error_code, base::PassPlatformFile(&file));
// Make sure we won't leak file handle if the requester has died.
if (file != base::kInvalidPlatformFileValue)
- base::FileUtilProxy::Close(GetFileThreadMessageLoopProxy(), file,
+ base::FileUtilProxy::Close(GetFileThreadMessageLoopProxy().get(),
+ file,
base::FileUtilProxy::StatusCallback());
delete callback;
}
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_output_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698