Index: remoting/host/capturer_fake.cc |
diff --git a/remoting/host/capturer_fake.cc b/remoting/host/capturer_fake.cc |
index 88bac101d5269af41d50492137c20efbfaf8325f..647a14879774270cf3f7b7a6fc4f676450140a97 100644 |
--- a/remoting/host/capturer_fake.cc |
+++ b/remoting/host/capturer_fake.cc |
@@ -68,9 +68,8 @@ void CapturerFake::InvalidateFullScreen() { |
helper.InvalidateFullScreen(); |
} |
-void CapturerFake::CaptureInvalidRegion(CaptureCompletedCallback* callback) { |
- scoped_ptr<CaptureCompletedCallback> callback_deleter(callback); |
- |
+void CapturerFake::CaptureInvalidRegion( |
+ const CaptureCompletedCallback& callback) { |
GenerateImage(); |
InvalidateScreen(size_); |
@@ -89,7 +88,7 @@ void CapturerFake::CaptureInvalidRegion(CaptureCompletedCallback* callback) { |
helper.set_size_most_recent(capture_data->size()); |
- callback->Run(capture_data); |
+ callback.Run(capture_data); |
} |
const SkISize& CapturerFake::size_most_recent() const { |