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

Unified Diff: chromeos/network/firewall_hole.cc

Issue 1556773002: Convert Pass()→std::move() in //chromeos (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
Index: chromeos/network/firewall_hole.cc
diff --git a/chromeos/network/firewall_hole.cc b/chromeos/network/firewall_hole.cc
index 3839b3a272ed129779a26ed0450c97ef85044640..29abf03d83d1bb28068491ca8632e396a8f80e65 100644
--- a/chromeos/network/firewall_hole.cc
+++ b/chromeos/network/firewall_hole.cc
@@ -7,6 +7,7 @@
#include <fcntl.h>
#include <stdint.h>
#include <unistd.h>
+#include <utility>
#include "base/bind.h"
#include "base/location.h"
@@ -139,7 +140,7 @@ void FirewallHole::PortAccessGranted(PortType type,
bool success) {
if (success) {
callback.Run(make_scoped_ptr(
- new FirewallHole(type, port, interface, lifeline_fd.Pass())));
+ new FirewallHole(type, port, interface, std::move(lifeline_fd))));
} else {
callback.Run(nullptr);
}
@@ -152,7 +153,6 @@ FirewallHole::FirewallHole(PortType type,
: type_(type),
port_(port),
interface_(interface),
- lifeline_fd_(lifeline_fd.Pass()) {
-}
+ lifeline_fd_(std::move(lifeline_fd)) {}
} // namespace chromeos
« no previous file with comments | « chromeos/login/auth/cryptohome_authenticator.cc ('k') | chromeos/network/managed_network_configuration_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698