Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: content/browser/renderer_host/media/video_capture_host.cc

Issue 2403533002: VideoCaptureHostTest: simplify testing and remove unused code (Closed)
Patch Set: xianglu@ comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_host.cc
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc
index e0c1a2c3ce3922768b34ec518c76b40a5b3e054f..3969167dba861efbd3a7282613e3ceb306bf534a 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -108,7 +108,7 @@ void VideoCaptureHost::OnBufferReady(
}
void VideoCaptureHost::OnEnded(VideoCaptureControllerID controller_id) {
- DVLOG(1) << "VideoCaptureHost::OnEnded";
+ DVLOG(1) << __func__;
DCHECK_CURRENTLY_ON(BrowserThread::IO);
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
@@ -116,7 +116,7 @@ void VideoCaptureHost::OnEnded(VideoCaptureControllerID controller_id) {
}
void VideoCaptureHost::DoError(VideoCaptureControllerID controller_id) {
- DVLOG(1) << "VideoCaptureHost::DoError";
+ DVLOG(1) << __func__;
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (controllers_.find(controller_id) == controllers_.end())
return;
@@ -127,7 +127,7 @@ void VideoCaptureHost::DoError(VideoCaptureControllerID controller_id) {
}
void VideoCaptureHost::DoEnded(VideoCaptureControllerID controller_id) {
- DVLOG(1) << "VideoCaptureHost::DoEnded";
+ DVLOG(1) << __func__;
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (controllers_.find(controller_id) == controllers_.end())
return;
@@ -137,8 +137,6 @@ void VideoCaptureHost::DoEnded(VideoCaptureControllerID controller_id) {
DeleteVideoCaptureController(controller_id, false);
}
-///////////////////////////////////////////////////////////////////////////////
-// IPC Messages handler.
bool VideoCaptureHost::OnMessageReceived(const IPC::Message& message) {
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(VideoCaptureHost, message)
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698