summaryrefslogtreecommitdiffstats
path: root/chrome/browser/nacl_host
diff options
context:
space:
mode:
authorgregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-06 01:56:28 +0000
committergregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-06 01:56:28 +0000
commitfd170c4d9a633faad9c6b93193539114bfcfeada (patch)
tree28f593ca7aab3919f93bbc331e7582cff4556850 /chrome/browser/nacl_host
parentac997648942d2b76146d5c6880517d0eff878bfa (diff)
downloadchromium_src-fd170c4d9a633faad9c6b93193539114bfcfeada.zip
chromium_src-fd170c4d9a633faad9c6b93193539114bfcfeada.tar.gz
chromium_src-fd170c4d9a633faad9c6b93193539114bfcfeada.tar.bz2
Add support for starting NaCl win64 process if nacl64.exe is in the version directory.
We now assume that nacl64.exe is in the same directory as chrome.dll (and not as chrome.exe as we assumed before). BUG=28176 TEST=none Review URL: http://codereview.chromium.org/668130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/nacl_host')
-rw-r--r--chrome/browser/nacl_host/nacl_broker_host.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/nacl_host/nacl_broker_host.cc b/chrome/browser/nacl_host/nacl_broker_host.cc
index 92ed181..f620a6a 100644
--- a/chrome/browser/nacl_host/nacl_broker_host.cc
+++ b/chrome/browser/nacl_host/nacl_broker_host.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/nacl_host/nacl_broker_host.h"
#include "base/command_line.h"
+#include "base/path_service.h"
#include "ipc/ipc_switches.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/nacl_host/nacl_broker_service.h"
@@ -34,11 +35,11 @@ bool NaClBrokerHost::Init() {
return false;
// Create the path to the nacl broker/loader executable.
- FilePath exe_path = GetChildPath(false);
- if (exe_path.empty())
+ FilePath module_path;
+ if (!PathService::Get(base::FILE_MODULE, &module_path))
return false;
- FilePath nacl_path = exe_path.DirName().Append(chrome::kNaClAppName);
+ FilePath nacl_path = module_path.DirName().Append(chrome::kNaClAppName);
CommandLine* cmd_line = new CommandLine(nacl_path);
nacl::CopyNaClCommandLineArguments(cmd_line);