OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/logging.h" |
| 6 #include "services/video_capture/service_configurator_impl.h" |
| 7 |
| 8 namespace video_capture { |
| 9 |
| 10 ServiceConfiguratorImpl::ServiceConfiguratorImpl( |
| 11 VideoCaptureDeviceFactoryImpl* factory) |
| 12 : factory_(factory) {} |
| 13 |
| 14 void ServiceConfiguratorImpl::AddFakeVideoCaptureDevice( |
| 15 const AddFakeVideoCaptureDeviceCallback& callback) { |
| 16 auto descriptor = factory_->AddFakeVideoCaptureDevice(); |
| 17 callback.Run(std::move(descriptor)); |
| 18 } |
| 19 |
| 20 } // namespace video_capture |
OLD | NEW |