Index: content/browser/media/capture/content_video_capture_device_core.cc |
diff --git a/content/browser/media/capture/content_video_capture_device_core.cc b/content/browser/media/capture/content_video_capture_device_core.cc |
index 2477816798ad8c553f83095a4ffac0b5a75ad525..689f3de4dc1b1047eee5c456937119f97e4b5a87 100644 |
--- a/content/browser/media/capture/content_video_capture_device_core.cc |
+++ b/content/browser/media/capture/content_video_capture_device_core.cc |
@@ -297,9 +297,13 @@ void ContentVideoCaptureDeviceCore::CaptureStarted(bool success) { |
ContentVideoCaptureDeviceCore::ContentVideoCaptureDeviceCore( |
scoped_ptr<VideoCaptureMachine> capture_machine) |
: state_(kIdle), |
- capture_machine_(capture_machine.Pass()) {} |
+ capture_machine_(capture_machine.Pass()) { |
+ DCHECK(capture_machine_.get()); |
+} |
ContentVideoCaptureDeviceCore::~ContentVideoCaptureDeviceCore() { |
+ DCHECK(thread_checker_.CalledOnValidThread()); |
+ DCHECK_NE(state_, kCapturing); |
// If capture_machine is not NULL, then we need to return to the UI thread to |
// safely stop the capture machine. |
if (capture_machine_) { |