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

Unified Diff: content/renderer/pepper/pepper_video_source_host.cc

Issue 16256018: Update content/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incorrectly modified code Created 7 years, 7 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_video_source_host.cc
diff --git a/content/renderer/pepper/pepper_video_source_host.cc b/content/renderer/pepper/pepper_video_source_host.cc
index bdbe26608e9137cbbcf366a1a6ccfe9b49c05045..47b5033e043479d72b8fccf85f4c4abf6217cf36 100644
--- a/content/renderer/pepper/pepper_video_source_host.cc
+++ b/content/renderer/pepper/pepper_video_source_host.cc
@@ -50,7 +50,7 @@ bool PepperVideoSourceHost::FrameReceiver::GotFrame(
void PepperVideoSourceHost::FrameReceiver::OnGotFrame(
scoped_ptr<cricket::VideoFrame> frame) {
- if (host_) {
+ if (host_.get()) {
// Take ownership of the new frame, and possibly delete any unsent one.
host_->last_frame_.swap(frame);
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | content/renderer/webplugin_delegate_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698