| Index: content/browser/renderer_host/render_widget_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
|
| index ce9d1ecb6827d07ad87e082ca4bbdfa8bf256458..30a5246726e3348b80760e5ff8832fa0506725c1 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -2148,7 +2148,7 @@ void RenderWidgetHostImpl::WindowSnapshotAsyncCallback(
|
| int snapshot_id,
|
| gfx::Size snapshot_size,
|
| scoped_refptr<base::RefCountedBytes> png_data) {
|
| - if (!png_data) {
|
| + if (!png_data.get()) {
|
| std::vector<unsigned char> png_vector;
|
| Send(new ViewMsg_WindowSnapshotCompleted(
|
| routing_id, snapshot_id, gfx::Size(), png_vector));
|
| @@ -2237,7 +2237,7 @@ void RenderWidgetHostImpl::OnSnapshotDataReceived(int snapshot_id,
|
| void RenderWidgetHostImpl::OnSnapshotDataReceivedAsync(
|
| int snapshot_id,
|
| scoped_refptr<base::RefCountedBytes> png_data) {
|
| - if (png_data)
|
| + if (png_data.get())
|
| OnSnapshotDataReceived(snapshot_id, png_data->front(), png_data->size());
|
| else
|
| OnSnapshotDataReceived(snapshot_id, NULL, 0);
|
|
|