diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 03:17:35 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 03:17:35 +0000 |
commit | 4bdde60b8a5e2a37d59318566708a8549f39b3f8 (patch) | |
tree | e770076308432c416e889268c685a84707e7ec23 /chrome/browser/nacl_host/nacl_process_host.cc | |
parent | 28384a325c1646d45ef7c367e61871b20c6a4d0c (diff) | |
download | chromium_src-4bdde60b8a5e2a37d59318566708a8549f39b3f8.zip chromium_src-4bdde60b8a5e2a37d59318566708a8549f39b3f8.tar.gz chromium_src-4bdde60b8a5e2a37d59318566708a8549f39b3f8.tar.bz2 |
Clean up of chrome_browser.gypi/nacl_host files.
BUG=none
TEST=trybots
Review URL: http://codereview.chromium.org/2860001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/nacl_host/nacl_process_host.cc')
-rw-r--r-- | chrome/browser/nacl_host/nacl_process_host.cc | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/chrome/browser/nacl_host/nacl_process_host.cc b/chrome/browser/nacl_host/nacl_process_host.cc index 2648b3e..f28d31a 100644 --- a/chrome/browser/nacl_host/nacl_process_host.cc +++ b/chrome/browser/nacl_host/nacl_process_host.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,7 +11,6 @@ #endif #include "base/command_line.h" -#include "chrome/browser/nacl_host/nacl_broker_service.h" #include "chrome/browser/renderer_host/resource_message_filter.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/logging_chrome.h" @@ -22,6 +21,8 @@ #if defined(OS_POSIX) #include "ipc/ipc_channel_posix.h" +#elif defined(OS_WIN) +#include "chrome/browser/nacl_host/nacl_broker_service_win.h" #endif NaClProcessHost::NaClProcessHost( @@ -55,7 +56,6 @@ bool NaClProcessHost::Launch(ResourceMessageFilter* resource_message_filter, NOTIMPLEMENTED() << "Native Client disabled at build time"; return false; #else - // Create a connected socket if (nacl::SocketPair(pair_) == -1) return false; @@ -98,16 +98,14 @@ bool NaClProcessHost::LaunchSelLdr() { NaClBrokerService::GetInstance()->Init(resource_dispatcher_host_); return NaClBrokerService::GetInstance()->LaunchLoader(this, ASCIIToWide(channel_id())); - } else // NO_LINT -#endif - ChildProcessHost::Launch( -#if defined(OS_WIN) - FilePath(), + } else { + ChildProcessHost::Launch(FilePath(), cmd_line); + } #elif defined(OS_POSIX) - true, // use_zygote - base::environment_vector(), + ChildProcessHost::Launch(true, // use_zygote + base::environment_vector(), + cmd_line); #endif - cmd_line); return true; } @@ -154,7 +152,6 @@ void NaClProcessHost::OnProcessLaunched() { PROCESS_DUP_HANDLE, FALSE, 0); - #else int flags = fcntl(pair_[0], F_GETFD); if (flags != -1) { @@ -168,7 +165,6 @@ void NaClProcessHost::OnProcessLaunched() { // We use pid as process handle on Posix nacl_process_handle = handle(); - #endif // Get the pid of the NaCl process |