| Index: media/video/capture/video_capture_device.cc
|
| diff --git a/media/video/capture/video_capture_device.cc b/media/video/capture/video_capture_device.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cd49f84fb38cc035f64912f4bb9cf765463d2178
|
| --- /dev/null
|
| +++ b/media/video/capture/video_capture_device.cc
|
| @@ -0,0 +1,18 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "media/video/capture/video_capture_device.h"
|
| +
|
| +namespace media {
|
| +
|
| +VideoCaptureDevice::Name*
|
| +VideoCaptureDevice::Names::FindById(const std::string& id) {
|
| + for (iterator it = begin(); it != end(); ++it) {
|
| + if (it->id() == id)
|
| + return &(*it);
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| +} // namespace media
|
|
|