Index: chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc |
diff --git a/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc b/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc |
index abcfde21b0ff5e59904d99fd0853ab23e935c8f8..a27e6cf854ba5885d8d35ea1f33611160d28c881 100644 |
--- a/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc |
+++ b/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc |
@@ -58,10 +58,8 @@ void SafeAudioVideoChecker::OnProcessStarted() { |
return; |
state_ = STARTED_STATE; |
- if (utility_process_host_->GetData().handle == base::kNullProcessHandle) |
- DLOG(ERROR) << "Child process handle is null"; |
- IPC::PlatformFileForTransit file_for_transit = IPC::TakeFileHandleForProcess( |
- std::move(file_), utility_process_host_->GetData().handle); |
+ IPC::PlatformFileForTransit file_for_transit = |
+ IPC::TakePlatformFileForTransit(std::move(file_)); |
if (file_for_transit == IPC::InvalidPlatformFileForTransit()) { |
OnCheckingFinished(false /* valid? */); |
return; |