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

Unified Diff: content/browser/media/capture/web_contents_video_capture_device_unittest.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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
Index: content/browser/media/capture/web_contents_video_capture_device_unittest.cc
diff --git a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
index 553eb721baccefae7614e2329e46ee43ddcbfcbc..3e3ff06a6135e7ca64ff4f3551cf2d5054512d94 100644
--- a/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
+++ b/content/browser/media/capture/web_contents_video_capture_device_unittest.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/bind_helpers.h"
#include "base/debug/debugger.h"
@@ -428,7 +429,7 @@ class StubClient : public media::VideoCaptureDevice::Client {
int buffer_id)
: id_(buffer_id),
pool_(pool),
- buffer_handle_(buffer_handle.Pass()) {
+ buffer_handle_(std::move(buffer_handle)) {
DCHECK(pool_.get());
}
int id() const override { return id_; }
@@ -474,7 +475,7 @@ class StubClientObserver {
virtual ~StubClientObserver() {}
scoped_ptr<media::VideoCaptureDevice::Client> PassClient() {
- return client_.Pass();
+ return std::move(client_);
}
void QuitIfConditionsMet(SkColor color, const gfx::Size& size) {
« no previous file with comments | « content/browser/media/capture/web_contents_video_capture_device.cc ('k') | content/browser/media/media_internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698