diff options
author | dcheng <dcheng@chromium.org> | 2016-03-02 15:20:34 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-02 23:21:51 +0000 |
commit | 70c494273fa71d922405cba4dc39f5457652a2db (patch) | |
tree | 9285f262fe33d8a3d4d9f36f8cd8244caa568ef7 /chrome/utility | |
parent | 063be11909af7bd64a575259b5ff01eb0686e287 (diff) | |
download | chromium_src-70c494273fa71d922405cba4dc39f5457652a2db.zip chromium_src-70c494273fa71d922405cba4dc39f5457652a2db.tar.gz chromium_src-70c494273fa71d922405cba4dc39f5457652a2db.tar.bz2 |
Convert Pass()→std::move() on Windows
Also cleaned up a few stragglers from grepping the source: it's unclear
if these are just building with weird defines, don't build at all, only
build on obscure platforms, or something else… either way, Pass()
itself will be removed shortly after this.
BUG=557422
Review URL: https://codereview.chromium.org/1752233002
Cr-Commit-Position: refs/heads/master@{#378872}
Diffstat (limited to 'chrome/utility')
-rw-r--r-- | chrome/utility/printing_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/utility/printing_handler.cc b/chrome/utility/printing_handler.cc index dc50b5b..e396492 100644 --- a/chrome/utility/printing_handler.cc +++ b/chrome/utility/printing_handler.cc @@ -76,7 +76,7 @@ void PrintingHandler::OnRenderPDFPagesToMetafile( const PdfRenderSettings& settings) { pdf_rendering_settings_ = settings; base::File pdf_file = IPC::PlatformFileForTransitToFile(pdf_transit); - int page_count = LoadPDF(pdf_file.Pass()); + int page_count = LoadPDF(std::move(pdf_file)); Send( new ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount(page_count)); } @@ -87,7 +87,7 @@ void PrintingHandler::OnRenderPDFPagesToMetafileGetPage( base::File emf_file = IPC::PlatformFileForTransitToFile(output_file); float scale_factor = 1.0f; bool success = - RenderPdfPageToMetafile(page_number, emf_file.Pass(), &scale_factor); + RenderPdfPageToMetafile(page_number, std::move(emf_file), &scale_factor); Send(new ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone( success, scale_factor)); } |