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

Unified Diff: chrome/utility/printing_handler.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/utility/printing_handler.cc
diff --git a/chrome/utility/printing_handler.cc b/chrome/utility/printing_handler.cc
index 553dbd8a8dac1c0244d4c77f47bf31a6291e77b2..dc50b5b007da3e3bbe8dbb87f5ce6c2be583434c 100644
--- a/chrome/utility/printing_handler.cc
+++ b/chrome/utility/printing_handler.cc
@@ -5,6 +5,7 @@
#include "chrome/utility/printing_handler.h"
#include <stdint.h>
+#include <utility>
#include "base/files/file_util.h"
#include "build/build_config.h"
@@ -105,8 +106,8 @@ void PrintingHandler::OnRenderPDFPagesToPWGRaster(
IPC::PlatformFileForTransit bitmap_transit) {
base::File pdf = IPC::PlatformFileForTransitToFile(pdf_transit);
base::File bitmap = IPC::PlatformFileForTransitToFile(bitmap_transit);
- if (RenderPDFPagesToPWGRaster(pdf.Pass(), settings, bitmap_settings,
- bitmap.Pass())) {
+ if (RenderPDFPagesToPWGRaster(std::move(pdf), settings, bitmap_settings,
+ std::move(bitmap))) {
Send(new ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Succeeded());
} else {
Send(new ChromeUtilityHostMsg_RenderPDFPagesToPWGRaster_Failed());

Powered by Google App Engine
This is Rietveld 408576698