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

Unified Diff: trunk/src/media/video/capture/video_capture_device.cc

Issue 61213006: Revert 235728 "Removed RunUntilIdle between Stop and Close in UT..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 | « trunk/src/media/video/capture/video_capture_device.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/video/capture/video_capture_device.cc
===================================================================
--- trunk/src/media/video/capture/video_capture_device.cc (revision 235779)
+++ trunk/src/media/video/capture/video_capture_device.cc (working copy)
@@ -17,6 +17,15 @@
return device_name_ + suffix;
}
+VideoCaptureDevice::Name*
+VideoCaptureDevice::Names::FindById(const std::string& id) {
+ for (iterator it = begin(); it != end(); ++it) {
+ if (it->id() == id)
+ return &(*it);
+ }
+ return NULL;
+}
+
VideoCaptureDevice::~VideoCaptureDevice() {}
} // namespace media
« no previous file with comments | « trunk/src/media/video/capture/video_capture_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698