Index: remoting/protocol/fake_desktop_capturer.cc |
diff --git a/remoting/protocol/fake_desktop_capturer.cc b/remoting/protocol/fake_desktop_capturer.cc |
index 9b15e9a50cdd08bb3e4a3bf92fccf0bef98b213d..f6042fd0e5c5b050dd02a433a201a534c7a47984 100644 |
--- a/remoting/protocol/fake_desktop_capturer.cc |
+++ b/remoting/protocol/fake_desktop_capturer.cc |
@@ -153,7 +153,10 @@ void FakeDesktopCapturer::Capture(const webrtc::DesktopRegion& region) { |
frame->set_capture_time_ms( |
(base::Time::Now() - capture_start_time).InMillisecondsRoundedUp()); |
} |
- callback_->OnCaptureCompleted(frame.release()); |
+ callback_->OnCaptureResult( |
+ frame ? webrtc::DesktopCapturer::Result::SUCCESS |
+ : webrtc::DesktopCapturer::Result::ERROR_TEMPORARY, |
+ std::move(frame)); |
} |
} // namespace protocol |