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

Unified Diff: chrome/browser/local_discovery/pwg_raster_converter.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/pwg_raster_converter.cc
diff --git a/chrome/browser/local_discovery/pwg_raster_converter.cc b/chrome/browser/local_discovery/pwg_raster_converter.cc
index da56119c40f2e930dc07d48428f9c91e4c176dca..4c5b7a7abeefc9c34365439742312f61e076fe79 100644
--- a/chrome/browser/local_discovery/pwg_raster_converter.cc
+++ b/chrome/browser/local_discovery/pwg_raster_converter.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/local_discovery/pwg_raster_converter.h"
#include <algorithm>
+#include <utility>
#include "base/bind_helpers.h"
#include "base/cancelable_callback.h"
@@ -59,14 +60,14 @@ class FileHandlers {
IPC::PlatformFileForTransit GetPdfForProcess(base::ProcessHandle process) {
DCHECK(pdf_file_.IsValid());
IPC::PlatformFileForTransit transit =
- IPC::TakeFileHandleForProcess(pdf_file_.Pass(), process);
+ IPC::TakeFileHandleForProcess(std::move(pdf_file_), process);
return transit;
}
IPC::PlatformFileForTransit GetPwgForProcess(base::ProcessHandle process) {
DCHECK(pwg_file_.IsValid());
IPC::PlatformFileForTransit transit =
- IPC::TakeFileHandleForProcess(pwg_file_.Pass(), process);
+ IPC::TakeFileHandleForProcess(std::move(pwg_file_), process);
return transit;
}

Powered by Google App Engine
This is Rietveld 408576698