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

Unified Diff: device/vibration/vibration_manager_impl_default.cc

Issue 1544323002: Convert Pass()→std::move() in //device (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
« no previous file with comments | « device/usb/usb_service_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vibration/vibration_manager_impl_default.cc
diff --git a/device/vibration/vibration_manager_impl_default.cc b/device/vibration/vibration_manager_impl_default.cc
index 25dba50c64472212eb893e3f75a4fd50ca83c78c..02c5a01eea6025f6dfe4699ac8222674d0cf1ad2 100644
--- a/device/vibration/vibration_manager_impl_default.cc
+++ b/device/vibration/vibration_manager_impl_default.cc
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "device/vibration/vibration_manager_impl.h"
-
#include <stdint.h>
+#include <utility>
+#include "device/vibration/vibration_manager_impl.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
namespace device {
@@ -22,7 +22,7 @@ class VibrationManagerEmptyImpl : public VibrationManager {
explicit VibrationManagerEmptyImpl(
mojo::InterfaceRequest<VibrationManager> request)
- : binding_(this, request.Pass()) {}
+ : binding_(this, std::move(request)) {}
~VibrationManagerEmptyImpl() override {}
// The binding between this object and the other end of the pipe.
@@ -34,7 +34,7 @@ class VibrationManagerEmptyImpl : public VibrationManager {
// static
void VibrationManagerImpl::Create(
mojo::InterfaceRequest<VibrationManager> request) {
- new VibrationManagerEmptyImpl(request.Pass());
+ new VibrationManagerEmptyImpl(std::move(request));
}
} // namespace device
« no previous file with comments | « device/usb/usb_service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698