mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
PathService -> base::PathService
This commit is contained in:
committed by
Aleksei Kuzmin
parent
7092fa31a4
commit
de581ca0b4
@@ -136,7 +136,7 @@ std::unique_ptr<const char* []> StringVectorToArgArray(
|
||||
base::FilePath GetResourcesPath(bool is_browser) {
|
||||
auto* command_line = base::CommandLine::ForCurrentProcess();
|
||||
base::FilePath exec_path(command_line->GetProgram());
|
||||
PathService::Get(base::FILE_EXE, &exec_path);
|
||||
base::PathService::Get(base::FILE_EXE, &exec_path);
|
||||
|
||||
base::FilePath resources_path =
|
||||
#if defined(OS_MACOSX)
|
||||
@@ -285,7 +285,7 @@ node::Environment* NodeBindings::CreateEnvironment(
|
||||
process.Set("_noBrowserGlobals", resources_path);
|
||||
// The path to helper app.
|
||||
base::FilePath helper_exec_path;
|
||||
PathService::Get(content::CHILD_PROCESS_EXE, &helper_exec_path);
|
||||
base::PathService::Get(content::CHILD_PROCESS_EXE, &helper_exec_path);
|
||||
process.Set("helperExecPath", helper_exec_path);
|
||||
|
||||
return env;
|
||||
|
||||
Reference in New Issue
Block a user