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

Unified Diff: media/capture/content/screen_capture_device_core.cc

Issue 1544313002: Convert Pass()→std::move() in //media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « media/blink/webmediaplayer_util.cc ('k') | media/capture/content/thread_safe_capture_oracle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/content/screen_capture_device_core.cc
diff --git a/media/capture/content/screen_capture_device_core.cc b/media/capture/content/screen_capture_device_core.cc
index d87b0a5efdf65f0faedf233ffb98479c2208d176..2b3f3cfaecfe3e799e2ef4821a7a1f93b23e5f09 100644
--- a/media/capture/content/screen_capture_device_core.cc
+++ b/media/capture/content/screen_capture_device_core.cc
@@ -4,6 +4,8 @@
#include "media/capture/content/screen_capture_device_core.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/logging.h"
#include "base/macros.h"
@@ -54,7 +56,7 @@ void ScreenCaptureDeviceCore::AllocateAndStart(
}
oracle_proxy_ = new ThreadSafeCaptureOracle(
- client.Pass(), params, capture_machine_->IsAutoThrottlingEnabled());
+ std::move(client), params, capture_machine_->IsAutoThrottlingEnabled());
capture_machine_->Start(
oracle_proxy_, params,
@@ -85,7 +87,7 @@ void ScreenCaptureDeviceCore::CaptureStarted(bool success) {
ScreenCaptureDeviceCore::ScreenCaptureDeviceCore(
scoped_ptr<VideoCaptureMachine> capture_machine)
- : state_(kIdle), capture_machine_(capture_machine.Pass()) {
+ : state_(kIdle), capture_machine_(std::move(capture_machine)) {
DCHECK(capture_machine_.get());
}
« no previous file with comments | « media/blink/webmediaplayer_util.cc ('k') | media/capture/content/thread_safe_capture_oracle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698