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

Unified Diff: remoting/host/chromeos/mouse_cursor_monitor_aura.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: include <utility> 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 | « remoting/host/chromeos/clipboard_aura.cc ('k') | remoting/host/chromeos/skia_bitmap_desktop_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromeos/mouse_cursor_monitor_aura.cc
diff --git a/remoting/host/chromeos/mouse_cursor_monitor_aura.cc b/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
index f1120aa2b5ed663c912fd2f7d6fe916e13925669..ed7a0e0b38887a30e791906377d5b96427b15961 100644
--- a/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
+++ b/remoting/host/chromeos/mouse_cursor_monitor_aura.cc
@@ -4,6 +4,8 @@
#include "remoting/host/chromeos/mouse_cursor_monitor_aura.h"
+#include <utility>
+
#include "ash/shell.h"
#include "base/bind.h"
#include "base/callback.h"
@@ -95,7 +97,7 @@ void MouseCursorMonitorAura::NotifyCursorChanged(const ui::Cursor& cursor) {
}
scoped_ptr<webrtc::DesktopFrame> image(
- SkiaBitmapDesktopFrame::Create(cursor_bitmap.Pass()));
+ SkiaBitmapDesktopFrame::Create(std::move(cursor_bitmap)));
scoped_ptr<webrtc::MouseCursor> cursor_shape(new webrtc::MouseCursor(
image.release(),
webrtc::DesktopVector(cursor_hotspot.x(), cursor_hotspot.y())));
« no previous file with comments | « remoting/host/chromeos/clipboard_aura.cc ('k') | remoting/host/chromeos/skia_bitmap_desktop_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698