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

Unified Diff: remoting/client/plugin/pepper_video_renderer_2d.cc

Issue 1545723002: Use std::move() instead of .Pass() in remoting/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_host
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 | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/client/plugin/pepper_video_renderer_3d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_video_renderer_2d.cc
diff --git a/remoting/client/plugin/pepper_video_renderer_2d.cc b/remoting/client/plugin/pepper_video_renderer_2d.cc
index 204fdc8525e38f9d3b463ec9d7aa5bdf0e56b71c..4e6e4baa2c0466cd3c277686815cdf3c901ce42e 100644
--- a/remoting/client/plugin/pepper_video_renderer_2d.cc
+++ b/remoting/client/plugin/pepper_video_renderer_2d.cc
@@ -6,6 +6,8 @@
#include <stdint.h>
+#include <utility>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/strings/string_util.h"
@@ -201,7 +203,7 @@ void PepperVideoRenderer2D::Flush() {
// |flushing_frames_done_callbacks_| so the callbacks are called when flush is
// finished.
DCHECK(flushing_frames_done_callbacks_.empty());
- flushing_frames_done_callbacks_ = pending_frames_done_callbacks_.Pass();
+ flushing_frames_done_callbacks_ = std::move(pending_frames_done_callbacks_);
// Flush the updated areas to the screen.
int error = graphics2d_.Flush(
« no previous file with comments | « remoting/client/plugin/pepper_port_allocator.cc ('k') | remoting/client/plugin/pepper_video_renderer_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698