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

Unified Diff: components/wifi/wifi_test.cc

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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: components/wifi/wifi_test.cc
diff --git a/components/wifi/wifi_test.cc b/components/wifi/wifi_test.cc
index d99ee862a06358d419837e9850128b4b63a91e9a..30014affea0fb2557ffbdd24afdadfcfd1a24290 100644
--- a/components/wifi/wifi_test.cc
+++ b/components/wifi/wifi_test.cc
@@ -3,7 +3,9 @@
// found in the LICENSE file.
#include <stdio.h>
+
#include <string>
+#include <utility>
#include "base/at_exit.h"
#include "base/bind.h"
@@ -177,8 +179,8 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
std::string new_network_guid;
properties->SetString("WiFi.SSID", network_guid);
VLOG(0) << "Creating Network: " << *properties;
- wifi_service_->CreateNetwork(
- false, properties.Pass(), &new_network_guid, &error);
+ wifi_service_->CreateNetwork(false, std::move(properties),
+ &new_network_guid, &error);
VLOG(0) << error << ":\n" << new_network_guid;
return true;
}
@@ -189,7 +191,8 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
std::string error;
if (!properties->empty()) {
VLOG(0) << "Using connect properties: " << *properties;
- wifi_service_->SetProperties(network_guid, properties.Pass(), &error);
+ wifi_service_->SetProperties(network_guid, std::move(properties),
+ &error);
}
wifi_service_->SetEventObservers(
« no previous file with comments | « components/wifi/network_properties.cc ('k') | content/browser/accessibility/accessibility_tree_formatter_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698