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

Unified Diff: chrome/browser/local_discovery/privet_local_printer_lister.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/privet_local_printer_lister.cc
diff --git a/chrome/browser/local_discovery/privet_local_printer_lister.cc b/chrome/browser/local_discovery/privet_local_printer_lister.cc
index cddce18b8e22369b03567036e1bd5880089a38b8..5a5cd11dd23d72a97b981be68563f1a659b3e9e6 100644
--- a/chrome/browser/local_discovery/privet_local_printer_lister.cc
+++ b/chrome/browser/local_discovery/privet_local_printer_lister.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/local_discovery/privet_local_printer_lister.h"
#include <stddef.h>
-
#include <string>
+#include <utility>
#include "chrome/browser/local_discovery/privet_constants.h"
#include "chrome/browser/local_discovery/privet_device_lister_impl.h"
@@ -95,7 +95,7 @@ void PrivetLocalPrinterLister::OnPrivetResolved(
base::Unretained(this),
i->second.get(),
http_client->GetName()));
- i->second->privet_client = http_client.Pass();
+ i->second->privet_client = std::move(http_client);
i->second->info_operation->Start();
}

Powered by Google App Engine
This is Rietveld 408576698