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

Unified Diff: remoting/host/chromeos/aura_desktop_capturer.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.cc
diff --git a/remoting/host/chromeos/aura_desktop_capturer.cc b/remoting/host/chromeos/aura_desktop_capturer.cc
index 02b960d839c467418a0f858e3eabbbeb7800eee0..1a053b763b2a7ea56dcb0471432c32cdc54ff3b7 100644
--- a/remoting/host/chromeos/aura_desktop_capturer.cc
+++ b/remoting/host/chromeos/aura_desktop_capturer.cc
@@ -49,7 +49,7 @@ void AuraDesktopCapturer::Capture(const webrtc::DesktopRegion&) {
gfx::Rect window_rect(desktop_window_->bounds().size());
request->set_area(window_rect);
- desktop_window_->layer()->RequestCopyOfOutput(request.Pass());
+ desktop_window_->layer()->RequestCopyOfOutput(std::move(request));
}
void AuraDesktopCapturer::OnFrameCaptured(
@@ -64,7 +64,7 @@ void AuraDesktopCapturer::OnFrameCaptured(
scoped_ptr<SkBitmap> bitmap = result->TakeBitmap();
scoped_ptr<webrtc::DesktopFrame> frame(
- SkiaBitmapDesktopFrame::Create(bitmap.Pass()));
+ SkiaBitmapDesktopFrame::Create(std::move(bitmap)));
// |VideoFramePump| will not encode the frame if |updated_region| is empty.
const webrtc::DesktopRect& rect = webrtc::DesktopRect::MakeWH(

Powered by Google App Engine
This is Rietveld 408576698