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

Unified Diff: remoting/host/daemon_process_win.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
« ppapi/proxy/ppapi_proxy_test.cc ('K') | « ppapi/proxy/ppapi_proxy_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/daemon_process_win.cc
diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc
index 1ac3e7f4ad66db6fa00a9bbde835480a5aea88b5..194a32a126a8214c9a5cc8710a63c58e630de237 100644
--- a/remoting/host/daemon_process_win.cc
+++ b/remoting/host/daemon_process_win.cc
@@ -45,14 +45,12 @@ using base::TimeDelta;
namespace {
-// Duplicates |key| into |target_process| and returns the value that can be sent
-// over IPC.
+// Duplicates |key| and returns the value that can be sent over IPC.
IPC::PlatformFileForTransit GetRegistryKeyForTransit(
- base::ProcessHandle target_process,
const base::win::RegKey& key) {
base::PlatformFile handle =
reinterpret_cast<base::PlatformFile>(key.Handle());
- return IPC::GetFileHandleForProcess(handle, target_process, false);
+ return IPC::GetPlatformFileForTransit(handle, false);
}
} // namespace
@@ -290,9 +288,9 @@ bool DaemonProcessWin::InitializePairingRegistry() {
// Duplicate handles to the network process.
IPC::PlatformFileForTransit privileged_key = GetRegistryKeyForTransit(
- network_process_.Get(), pairing_registry_privileged_key_);
+ pairing_registry_privileged_key_);
IPC::PlatformFileForTransit unprivileged_key = GetRegistryKeyForTransit(
- network_process_.Get(), pairing_registry_unprivileged_key_);
+ pairing_registry_unprivileged_key_);
if (!(privileged_key.IsValid() && unprivileged_key.IsValid()))
return false;
« ppapi/proxy/ppapi_proxy_test.cc ('K') | « ppapi/proxy/ppapi_proxy_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698