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

Unified Diff: chrome/browser/safe_browsing/sandboxed_zip_analyzer.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_zip_analyzer.cc
diff --git a/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc b/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
index 1779e4ee396fa35549ce24d30ee85e2be2bf0bef..4c4b4b607ee61c65f5601cf8445c39eb37271185 100644
--- a/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
+++ b/chrome/browser/safe_browsing/sandboxed_zip_analyzer.cc
@@ -137,17 +137,9 @@ void SandboxedZipAnalyzer::StartProcessOnIOThread() {
void SandboxedZipAnalyzer::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_AnalyzeZipFileForDownloadProtection(
- IPC::TakeFileHandleForProcess(std::move(zip_file_), utility_process),
+ IPC::TakePlatformFileForTransit(std::move(zip_file_)),
IPC::GetPlatformFileForTransit(temp_file_.GetPlatformFile(),
false /* !close_source_handle */)));
}
« no previous file with comments | « chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698