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

Unified Diff: chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.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/safe_browsing/sandboxed_dmg_analyzer_mac.cc
diff --git a/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.cc b/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.cc
index d4ed09727100c96b429a623cf9a86c329480a6dc..cfc709f8ae6837775ea0649560f6e2ac2e1b10a4 100644
--- a/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.cc
+++ b/chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.cc
@@ -91,18 +91,9 @@ bool SandboxedDMGAnalyzer::OnMessageReceived(const IPC::Message& message) {
void SandboxedDMGAnalyzer::OnUtilityProcessStarted() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
-
- base::ProcessHandle utility_process =
- content::RenderProcessHost::run_renderer_in_process() ?
- base::GetCurrentProcessHandle() :
- utility_process_host_->GetData().handle;
- if (utility_process == base::kNullProcessHandle) {
- DLOG(ERROR) << "Child process handle is null";
- }
-
utility_process_host_->Send(
new ChromeUtilityMsg_AnalyzeDmgFileForDownloadProtection(
- IPC::TakeFileHandleForProcess(std::move(file_), utility_process)));
+ IPC::TakePlatformFileForTransit(std::move(file_))));
}
void SandboxedDMGAnalyzer::OnAnalysisFinished(
« no previous file with comments | « chrome/browser/printing/pwg_raster_converter.cc ('k') | chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698