Index: chrome/browser/printing/pdf_to_emf_converter.cc |
diff --git a/chrome/browser/printing/pdf_to_emf_converter.cc b/chrome/browser/printing/pdf_to_emf_converter.cc |
index 17d235632d0749446b673034500d21b4c74811a3..a261a9b7b95086dfc8af42c0343e03c0352250a5 100644 |
--- a/chrome/browser/printing/pdf_to_emf_converter.cc |
+++ b/chrome/browser/printing/pdf_to_emf_converter.cc |
@@ -335,10 +335,9 @@ void PdfToEmfUtilityProcessHostClient::OnTempPdfReady(ScopedTempFile pdf) { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (!utility_process_host_ || !pdf) |
return OnFailed(); |
- base::ProcessHandle process = utility_process_host_->GetData().handle; |
// Should reply with OnPageCount(). |
Send(new ChromeUtilityMsg_RenderPDFPagesToMetafiles( |
- IPC::GetFileHandleForProcess(pdf->GetPlatformFile(), process, false), |
+ IPC::GetPlatformFileForTransit(pdf->GetPlatformFile(), false), |
settings_)); |
} |
@@ -389,9 +388,8 @@ void PdfToEmfUtilityProcessHostClient::OnTempEmfReady( |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (!utility_process_host_ || !emf) |
return OnFailed(); |
- base::ProcessHandle process = utility_process_host_->GetData().handle; |
IPC::PlatformFileForTransit transit = |
- IPC::GetFileHandleForProcess(emf->GetPlatformFile(), process, false); |
+ IPC::GetPlatformFileForTransit(emf->GetPlatformFile(), false); |
callback_data->set_emf(std::move(emf)); |
// Should reply with OnPageDone(). |
Send(new ChromeUtilityMsg_RenderPDFPagesToMetafiles_GetPage( |