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

Unified Diff: media/capture/video/mac/video_capture_device_mac.mm

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: media/capture/video/mac/video_capture_device_mac.mm
diff --git a/media/capture/video/mac/video_capture_device_mac.mm b/media/capture/video/mac/video_capture_device_mac.mm
index 00e1c00342ccac4128460f5244fda52283d0661c..ec6fcaf83f9279d46beea362f6b16a9814607456 100644
--- a/media/capture/video/mac/video_capture_device_mac.mm
+++ b/media/capture/video/mac/video_capture_device_mac.mm
@@ -11,6 +11,7 @@
#include <stdint.h>
#include <limits>
+#include <utility>
#include "base/bind.h"
#include "base/location.h"
@@ -377,7 +378,7 @@ void VideoCaptureDeviceMac::AllocateAndStart(
if (!AVFoundationGlue::IsAVFoundationSupported())
GetBestMatchSupportedResolution(&resolution);
- client_ = client.Pass();
+ client_ = std::move(client);
if (device_name_.capture_api_type() == Name::AVFOUNDATION)
LogMessage("Using AVFoundation for device: " + device_name_.name());
else
« no previous file with comments | « media/capture/video/mac/video_capture_device_factory_mac.mm ('k') | media/capture/video/video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698