| Index: remoting/host/capturer_fake_ascii.cc
|
| diff --git a/remoting/host/capturer_fake_ascii.cc b/remoting/host/capturer_fake_ascii.cc
|
| index f2bb5d201c63aee379472d21fb5a9e89b4026bd3..e0f584563c865f062b5608e5c33bcb751465bebc 100644
|
| --- a/remoting/host/capturer_fake_ascii.cc
|
| +++ b/remoting/host/capturer_fake_ascii.cc
|
| @@ -52,9 +52,7 @@ void CapturerFakeAscii::InvalidateFullScreen() {
|
| }
|
|
|
| void CapturerFakeAscii::CaptureInvalidRegion(
|
| - CaptureCompletedCallback* callback) {
|
| - scoped_ptr<CaptureCompletedCallback> callback_deleter(callback);
|
| -
|
| + const CaptureCompletedCallback& callback) {
|
| GenerateImage();
|
| DataPlanes planes;
|
| planes.data[0] = buffers_[current_buffer_].get();
|
| @@ -65,7 +63,7 @@ void CapturerFakeAscii::CaptureInvalidRegion(
|
|
|
| helper_.set_size_most_recent(capture_data->size());
|
|
|
| - callback->Run(capture_data);
|
| + callback.Run(capture_data);
|
| }
|
|
|
| const SkISize& CapturerFakeAscii::size_most_recent() const {
|
|
|