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

Unified Diff: services/video_capture/mock_device_factory.cc

Issue 2386183002: Replace manual conversions with Mojo type mappings
Patch Set: 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 | « services/video_capture/mock_device_factory.h ('k') | services/video_capture/mock_device_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/mock_device_factory.cc
diff --git a/services/video_capture/mock_device_factory.cc b/services/video_capture/mock_device_factory.cc
index 475ad2982dfd883b37e4782618403abe9b7fe0da..a32497db5efa82f101a3f1ab0c9ba4eaa9863b40 100644
--- a/services/video_capture/mock_device_factory.cc
+++ b/services/video_capture/mock_device_factory.cc
@@ -10,7 +10,6 @@
#include "base/strings/stringprintf.h"
#include "media/capture/video/fake_video_capture_device.h"
#include "services/video_capture/device_mock_to_media_adapter.h"
-#include "services/video_capture/mojo_media_conversions.h"
namespace {
// Report a single hard-coded supported format to clients.
@@ -28,10 +27,8 @@ MockDeviceFactory::~MockDeviceFactory() = default;
void MockDeviceFactory::AddMockDevice(
mojom::MockVideoCaptureDevicePtr device,
- mojom::VideoCaptureDeviceDescriptorPtr descriptor) {
- media::VideoCaptureDeviceDescriptor media_descriptor =
- ConvertFromMojoToMedia(std::move(descriptor));
- devices_[media_descriptor] = std::move(device);
+ const media::VideoCaptureDeviceDescriptor& descriptor) {
+ devices_[descriptor] = std::move(device);
}
std::unique_ptr<media::VideoCaptureDevice> MockDeviceFactory::CreateDevice(
« no previous file with comments | « services/video_capture/mock_device_factory.h ('k') | services/video_capture/mock_device_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698