mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
PathService -> base::PathService
This commit is contained in:
committed by
Aleksei Kuzmin
parent
7092fa31a4
commit
de581ca0b4
@@ -26,7 +26,7 @@ bool HasMainProcessKey() {
|
||||
base::FilePath MainApplicationBundlePath() {
|
||||
// Start out with the path to the running executable.
|
||||
base::FilePath path;
|
||||
PathService::Get(base::FILE_EXE, &path);
|
||||
base::PathService::Get(base::FILE_EXE, &path);
|
||||
|
||||
// Up to Contents.
|
||||
if (!HasMainProcessKey() &&
|
||||
|
||||
@@ -52,7 +52,7 @@ void LoadResourceBundle(const std::string& locale) {
|
||||
pak_dir =
|
||||
base::mac::FrameworkBundlePath().Append(FILE_PATH_LITERAL("Resources"));
|
||||
#else
|
||||
PathService::Get(base::DIR_MODULE, &pak_dir);
|
||||
base::PathService::Get(base::DIR_MODULE, &pak_dir);
|
||||
#endif
|
||||
|
||||
ui::ResourceBundle::InitSharedInstanceWithLocale(
|
||||
|
||||
@@ -41,7 +41,7 @@ void MainDelegate::OverrideChildProcessPath() {
|
||||
.Append("MacOS")
|
||||
.Append(GetApplicationName() + " Helper");
|
||||
|
||||
PathService::Override(content::CHILD_PROCESS_EXE, helper_path);
|
||||
base::PathService::Override(content::CHILD_PROCESS_EXE, helper_path);
|
||||
}
|
||||
|
||||
} // namespace brightray
|
||||
|
||||
Reference in New Issue
Block a user