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

Unified Diff: chrome/browser/printing/pwg_raster_converter.cc

Issue 1862333002: ipc: Rename TakeFileHandleForProcess->TakePlatformFileForTransit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile errors. Created 4 years, 8 months 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/printing/pwg_raster_converter.cc
diff --git a/chrome/browser/printing/pwg_raster_converter.cc b/chrome/browser/printing/pwg_raster_converter.cc
index 1b0b4d8084e8ddf9c22dd852ec4c61e1f83995fd..bc00f525f214e06f5c2bc0746af1b31441bbe3fd 100644
--- a/chrome/browser/printing/pwg_raster_converter.cc
+++ b/chrome/browser/printing/pwg_raster_converter.cc
@@ -57,17 +57,17 @@ class FileHandlers {
return temp_dir_.path().AppendASCII("input.pdf");
}
- IPC::PlatformFileForTransit GetPdfForProcess(base::ProcessHandle process) {
+ IPC::PlatformFileForTransit GetPdfForProcess() {
DCHECK(pdf_file_.IsValid());
IPC::PlatformFileForTransit transit =
- IPC::TakeFileHandleForProcess(std::move(pdf_file_), process);
+ IPC::TakePlatformFileForTransit(std::move(pdf_file_));
return transit;
}
- IPC::PlatformFileForTransit GetPwgForProcess(base::ProcessHandle process) {
+ IPC::PlatformFileForTransit GetPwgForProcess() {
DCHECK(pwg_file_.IsValid());
IPC::PlatformFileForTransit transit =
- IPC::TakeFileHandleForProcess(std::move(pwg_file_), process);
+ IPC::TakePlatformFileForTransit(std::move(pwg_file_));
return transit;
}
@@ -196,12 +196,9 @@ void PwgUtilityProcessHostClient::OnProcessStarted() {
return;
}
- base::ProcessHandle process = utility_process_host_->GetData().handle;
utility_process_host_->Send(new ChromeUtilityMsg_RenderPDFPagesToPWGRaster(
- files_->GetPdfForProcess(process),
- settings_,
- bitmap_settings_,
- files_->GetPwgForProcess(process)));
+ files_->GetPdfForProcess(), settings_, bitmap_settings_,
+ files_->GetPwgForProcess()));
utility_process_host_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698