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

Unified Diff: remoting/host/chromeos/aura_desktop_capturer_unittest.cc

Issue 1549493004: Use std::move() instead of .Pass() in remoting/host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass
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: remoting/host/chromeos/aura_desktop_capturer_unittest.cc
diff --git a/remoting/host/chromeos/aura_desktop_capturer_unittest.cc b/remoting/host/chromeos/aura_desktop_capturer_unittest.cc
index 42dee81536b268215efca3996ce7d7232641166f..394d1b4aecb597ea0a5181a158cddf5fbb60fd15 100644
--- a/remoting/host/chromeos/aura_desktop_capturer_unittest.cc
+++ b/remoting/host/chromeos/aura_desktop_capturer_unittest.cc
@@ -52,8 +52,8 @@ class AuraDesktopCapturerTest : public testing::Test,
bitmap->installPixels(info, const_cast<unsigned char*>(frame_data), 12);
scoped_ptr<cc::CopyOutputResult> output =
- cc::CopyOutputResult::CreateBitmapResult(bitmap.Pass());
- capturer_->OnFrameCaptured(output.Pass());
+ cc::CopyOutputResult::CreateBitmapResult(std::move(bitmap));
+ capturer_->OnFrameCaptured(std::move(output));
}
scoped_ptr<AuraDesktopCapturer> capturer_;

Powered by Google App Engine
This is Rietveld 408576698