Index: remoting/host/chromeos/aura_desktop_capturer.cc |
diff --git a/remoting/host/chromeos/aura_desktop_capturer.cc b/remoting/host/chromeos/aura_desktop_capturer.cc |
index ee80cd2f25d679686c597059c54d991db8f5eaa4..e874165f1bfe1942b7361de821fdb5e0cedaf919 100644 |
--- a/remoting/host/chromeos/aura_desktop_capturer.cc |
+++ b/remoting/host/chromeos/aura_desktop_capturer.cc |
@@ -55,7 +55,8 @@ void AuraDesktopCapturer::Capture(const webrtc::DesktopRegion&) { |
void AuraDesktopCapturer::OnFrameCaptured( |
std::unique_ptr<cc::CopyOutputResult> result) { |
if (result->IsEmpty()) { |
- callback_->OnCaptureCompleted(nullptr); |
+ callback_->OnCaptureResult(DesktopCatpurer::Result::ERROR_TEMPORARY, |
+ nullptr); |
return; |
} |
@@ -74,7 +75,8 @@ void AuraDesktopCapturer::OnFrameCaptured( |
// See cc::Layer::contents_scale_(x|y)() and frame->set_depi(). |
frame->mutable_updated_region()->SetRect(rect); |
- callback_->OnCaptureCompleted(frame.release()); |
+ callback_->OnCaptureResult(DesktopCatpurer::Result::SUCCESS, |
+ std::move(frame)); |
} |
} // namespace remoting |