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

Unified Diff: device/devices_app/usb/fake_permission_provider.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/devices_app/usb/device_manager_impl_unittest.cc ('k') | device/devices_app/usb/type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/usb/fake_permission_provider.cc
diff --git a/device/devices_app/usb/fake_permission_provider.cc b/device/devices_app/usb/fake_permission_provider.cc
index b660b2708405ddbd6c02088d8389943b83de0db8..3a774a83ac96523635ba700bcaa88eb520831b96 100644
--- a/device/devices_app/usb/fake_permission_provider.cc
+++ b/device/devices_app/usb/fake_permission_provider.cc
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stddef.h>
-
#include "device/devices_app/usb/fake_permission_provider.h"
+#include <stddef.h>
+#include <utility>
+
namespace device {
namespace usb {
@@ -19,7 +20,7 @@ void FakePermissionProvider::HasDevicePermission(
mojo::Array<mojo::String> allowed_guids(requested_devices.size());
for (size_t i = 0; i < requested_devices.size(); ++i)
allowed_guids[i] = requested_devices[i]->guid;
- callback.Run(allowed_guids.Pass());
+ callback.Run(std::move(allowed_guids));
}
void FakePermissionProvider::HasConfigurationPermission(
@@ -38,7 +39,7 @@ void FakePermissionProvider::HasInterfacePermission(
void FakePermissionProvider::Bind(
mojo::InterfaceRequest<PermissionProvider> request) {
- bindings_.AddBinding(this, request.Pass());
+ bindings_.AddBinding(this, std::move(request));
}
} // namespace usb
« no previous file with comments | « device/devices_app/usb/device_manager_impl_unittest.cc ('k') | device/devices_app/usb/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698