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

Unified Diff: components/translate/content/browser/data_file_browser_cld_data_provider.cc

Issue 1858973002: ipc: Rename GetFileHandleForProcess->GetPlatformFileForTransit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp16_ipc_pfft_implementation
Patch Set: Comments from tsepez. 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: components/translate/content/browser/data_file_browser_cld_data_provider.cc
diff --git a/components/translate/content/browser/data_file_browser_cld_data_provider.cc b/components/translate/content/browser/data_file_browser_cld_data_provider.cc
index dcfe4cee3ac86311bd3913fe0b1e9a2507b5c6b8..ca658036af9530c0b0d032d425430cdb735ebfab 100644
--- a/components/translate/content/browser/data_file_browser_cld_data_provider.cc
+++ b/components/translate/content/browser/data_file_browser_cld_data_provider.cc
@@ -160,10 +160,8 @@ void DataFileBrowserCldDataProvider::SendCldDataResponseInternal(
}
// Data available, respond to the request.
- base::ProcessHandle render_process_handle = render_process_host->GetHandle();
IPC::PlatformFileForTransit ipc_platform_file =
- IPC::GetFileHandleForProcess(handle->GetPlatformFile(),
- render_process_handle, false);
+ IPC::GetPlatformFileForTransit(handle->GetPlatformFile(), false);
// In general, sending a response from within the code path that is processing
// a request is discouraged because there is potential for deadlock (if the

Powered by Google App Engine
This is Rietveld 408576698