Index: media/capture/content/screen_capture_device_core.cc |
diff --git a/media/capture/content/screen_capture_device_core.cc b/media/capture/content/screen_capture_device_core.cc |
index e68982b2eb7a4dded4b37c331ec5da3f4d0900d7..4ebcdf120b4acbbc474da8efc87d7f9bcf400f13 100644 |
--- a/media/capture/content/screen_capture_device_core.cc |
+++ b/media/capture/content/screen_capture_device_core.cc |
@@ -136,6 +136,8 @@ void ScreenCaptureDeviceCore::CaptureStarted(bool success) { |
DCHECK(thread_checker_.CalledOnValidThread()); |
if (!success) |
Error(FROM_HERE, "Failed to start capture machine."); |
+ else if (oracle_proxy_) |
+ oracle_proxy_->ReportStarted(); |
} |
ScreenCaptureDeviceCore::ScreenCaptureDeviceCore( |
@@ -178,7 +180,7 @@ void ScreenCaptureDeviceCore::Error(const tracked_objects::Location& from_here, |
if (state_ == kIdle) |
return; |
- if (oracle_proxy_.get()) |
+ if (oracle_proxy_) |
oracle_proxy_->ReportError(from_here, reason); |
StopAndDeAllocate(); |