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

Unified Diff: chrome/browser/local_discovery/privet_http_impl.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_http_impl.cc
diff --git a/chrome/browser/local_discovery/privet_http_impl.cc b/chrome/browser/local_discovery/privet_http_impl.cc
index 2d2160139e1bf02cac68837f646b07386e5e9ecb..1a725375a5dcf32c0444bcb2529038384fc7a92e 100644
--- a/chrome/browser/local_discovery/privet_http_impl.cc
+++ b/chrome/browser/local_discovery/privet_http_impl.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/local_discovery/privet_http_impl.h"
#include <stddef.h>
-
#include <algorithm>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -690,7 +690,7 @@ void PrivetLocalPrintOperationImpl::SetPageSize(const gfx::Size& page_size) {
void PrivetLocalPrintOperationImpl::SetPWGRasterConverterForTesting(
scoped_ptr<PWGRasterConverter> pwg_raster_converter) {
- pwg_raster_converter_ = pwg_raster_converter.Pass();
+ pwg_raster_converter_ = std::move(pwg_raster_converter);
}
#endif // ENABLE_PRINT_PREVIEW
@@ -761,8 +761,7 @@ void PrivetHTTPClientImpl::OnPrivetInfoDone(
PrivetV1HTTPClientImpl::PrivetV1HTTPClientImpl(
scoped_ptr<PrivetHTTPClient> info_client)
- : info_client_(info_client.Pass()) {
-}
+ : info_client_(std::move(info_client)) {}
PrivetV1HTTPClientImpl::~PrivetV1HTTPClientImpl() {
}

Powered by Google App Engine
This is Rietveld 408576698