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( |