summaryrefslogtreecommitdiffstats
path: root/content/browser/media/capture/web_contents_video_capture_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/media/capture/web_contents_video_capture_device.cc')
-rw-r--r--content/browser/media/capture/web_contents_video_capture_device.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/browser/media/capture/web_contents_video_capture_device.cc b/content/browser/media/capture/web_contents_video_capture_device.cc
index 2e2527a..0e5347c 100644
--- a/content/browser/media/capture/web_contents_video_capture_device.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device.cc
@@ -269,7 +269,7 @@ class WebContentsCaptureMachine
RenewFrameSubscription();
}
- virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE;
+ virtual void WebContentsDestroyed() OVERRIDE;
private:
// Starts observing the web contents, returning false if lookup fails.
@@ -702,12 +702,11 @@ bool WebContentsCaptureMachine::StartObservingWebContents() {
return false;
}
-void WebContentsCaptureMachine::WebContentsDestroyed(
- WebContents* web_contents) {
+void WebContentsCaptureMachine::WebContentsDestroyed() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
subscription_.reset();
- web_contents->DecrementCapturerCount();
+ web_contents()->DecrementCapturerCount();
oracle_proxy_->ReportError("WebContentsDestroyed()");
}