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

Unified Diff: components/nacl/browser/nacl_process_host.cc

Issue 1882353002: nacl: Remove unnecessary reference to BrokerAddTargetPeer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/browser/nacl_process_host.cc
diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc
index f1af8389d1c0876fd050777984dd281b7f00b292..63216d6ba7a83c8a4ae6bcb16e720d04ac6c773d 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -719,20 +719,6 @@ void NaClProcessHost::ReplyToRenderer(
ScopedChannelHandle ppapi_channel_handle,
ScopedChannelHandle trusted_channel_handle,
ScopedChannelHandle manifest_service_channel_handle) {
-#if defined(OS_WIN)
- // If we are on 64-bit Windows, the NaCl process's sandbox is
- // managed by a different process from the renderer's sandbox. We
- // need to inform the renderer's sandbox about the NaCl process so
- // that the renderer can send handles to the NaCl process using
- // BrokerDuplicateHandle().
- if (RunningOnWOW64()) {
- if (!content::BrokerAddTargetPeer(process_->GetData().handle)) {
- SendErrorToRenderer("BrokerAddTargetPeer() failed");
- return;
- }
- }
-#endif
-
// Hereafter, we always send an IPC message with handles created above
// which, on Windows, are not closable in this process.
std::string error_message;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698