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

Unified Diff: device/devices_app/devices_app.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/bluetooth/test/mock_bluetooth_gatt_service.cc ('k') | device/devices_app/usb/device_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/devices_app/devices_app.cc
diff --git a/device/devices_app/devices_app.cc b/device/devices_app/devices_app.cc
index 67675847675cd69ee23fa08275ac077d2a621559..7c392ad67ecd8239aa85385205715ced14d23a38 100644
--- a/device/devices_app/devices_app.cc
+++ b/device/devices_app/devices_app.cc
@@ -5,6 +5,7 @@
#include "device/devices_app/devices_app.h"
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "base/callback.h"
@@ -105,8 +106,8 @@ void DevicesApp::Create(mojo::ApplicationConnection* connection,
connection->ConnectToService(&permission_provider);
// Owned by its message pipe.
- usb::DeviceManagerImpl* device_manager =
- new usb::DeviceManagerImpl(permission_provider.Pass(), request.Pass());
+ usb::DeviceManagerImpl* device_manager = new usb::DeviceManagerImpl(
+ std::move(permission_provider), std::move(request));
device_manager->set_connection_error_handler(
base::Bind(&DevicesApp::OnConnectionError, base::Unretained(this)));
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_service.cc ('k') | device/devices_app/usb/device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698