Index: content/browser/renderer_host/render_widget_host_view_mac.mm |
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm |
index 7e86f0541f021dbe62c725e3754f4403a74c8582..434977596f2e25aad15e711b9358ed7409b1e4bd 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm |
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm |
@@ -492,7 +492,7 @@ void RenderWidgetHostViewMac::EnableCoreAnimation() { |
bool RenderWidgetHostViewMac::CreateCompositedIOSurfaceAndLayer() { |
if (compositing_iosurface_layer_ && |
- [compositing_iosurface_layer_ context] && |
+ [compositing_iosurface_layer_ context].get() && |
compositing_iosurface_) { |
return true; |
} |
@@ -1103,7 +1103,7 @@ void RenderWidgetHostViewMac::CopyFromCompositingSurfaceToVideoFrame( |
!compositing_iosurface_->HasIOSurface()) |
return; |
- if (!target) { |
+ if (!target.get()) { |
NOTREACHED(); |
return; |
} |