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

Unified Diff: chrome/browser/nacl_host/nacl_broker_host.cc

Issue 668130: Add support for starting NaCl win64 process if nacl64.exe is in the version d... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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: chrome/browser/nacl_host/nacl_broker_host.cc
===================================================================
--- chrome/browser/nacl_host/nacl_broker_host.cc (revision 40698)
+++ chrome/browser/nacl_host/nacl_broker_host.cc (working copy)
@@ -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 @@
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);
« 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