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

Unified Diff: services/video_capture/test/mock_device_factory.cc

Issue 2919253002: Don't move raw pointers in services (Closed)
Patch Set: Created 3 years, 6 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/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/test/mock_device_factory.cc
diff --git a/services/video_capture/test/mock_device_factory.cc b/services/video_capture/test/mock_device_factory.cc
index dd9a7875495f1cfdadeef2ffe6a72fbaa3590b68..e69a084946f3970cc769aafc2b911266086dc493 100644
--- a/services/video_capture/test/mock_device_factory.cc
+++ b/services/video_capture/test/mock_device_factory.cc
@@ -56,7 +56,7 @@ MockDeviceFactory::~MockDeviceFactory() = default;
void MockDeviceFactory::AddMockDevice(
media::VideoCaptureDevice* device,
const media::VideoCaptureDeviceDescriptor& descriptor) {
- devices_[descriptor] = std::move(device);
+ devices_[descriptor] = device;
}
std::unique_ptr<media::VideoCaptureDevice> MockDeviceFactory::CreateDevice(
« no previous file with comments | « services/ui/public/cpp/bitmap/child_shared_bitmap_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698