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

Unified Diff: chrome/browser/local_discovery/service_discovery_client_mdns.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/local_discovery/service_discovery_client_mdns.cc
diff --git a/chrome/browser/local_discovery/service_discovery_client_mdns.cc b/chrome/browser/local_discovery/service_discovery_client_mdns.cc
index eb76c53272f17ff76db3ebd5710a3891f5ca5d3b..cf82a96a38e8ef67ea72aa50ecc4dcc1da9bf1ae 100644
--- a/chrome/browser/local_discovery/service_discovery_client_mdns.cc
+++ b/chrome/browser/local_discovery/service_discovery_client_mdns.cc
@@ -5,7 +5,7 @@
#include "chrome/browser/local_discovery/service_discovery_client_mdns.h"
#include <stddef.h>
-
+#include <utility>
#include <vector>
#include "base/location.h"
@@ -167,7 +167,7 @@ class ProxyBase : public ServiceDiscoveryClientMdns::Proxy, public T {
protected:
void set_implementation(scoped_ptr<T> implementation) {
- implementation_ = implementation.Pass();
+ implementation_ = std::move(implementation);
}
T* implementation() const {

Powered by Google App Engine
This is Rietveld 408576698