chore: rename atom -> electron (#21986)
This commit is contained in:
parent
f14fc4b041
commit
d9321f4df7
287 changed files with 1771 additions and 1708 deletions
|
@ -23,7 +23,7 @@
|
|||
#include "content/public/browser/browser_thread.h"
|
||||
#include "content/public/common/content_paths.h"
|
||||
#include "electron/buildflags/buildflags.h"
|
||||
#include "shell/common/atom_command_line.h"
|
||||
#include "shell/common/electron_command_line.h"
|
||||
#include "shell/common/gin_converters/file_path_converter.h"
|
||||
#include "shell/common/gin_helper/dictionary.h"
|
||||
#include "shell/common/gin_helper/event_emitter_caller.h"
|
||||
|
@ -264,7 +264,7 @@ void NodeBindings::Initialize() {
|
|||
#if defined(OS_LINUX)
|
||||
// Get real command line in renderer process forked by zygote.
|
||||
if (browser_env_ != BrowserEnvironment::BROWSER)
|
||||
AtomCommandLine::InitializeFromCommandLine();
|
||||
ElectronCommandLine::InitializeFromCommandLine();
|
||||
#endif
|
||||
|
||||
// Explicitly register electron's builtin modules.
|
||||
|
@ -302,12 +302,12 @@ node::Environment* NodeBindings::CreateEnvironment(
|
|||
node::MultiIsolatePlatform* platform,
|
||||
bool bootstrap_env) {
|
||||
#if defined(OS_WIN)
|
||||
auto& atom_args = AtomCommandLine::argv();
|
||||
auto& atom_args = ElectronCommandLine::argv();
|
||||
std::vector<std::string> args(atom_args.size());
|
||||
std::transform(atom_args.cbegin(), atom_args.cend(), args.begin(),
|
||||
[](auto& a) { return base::WideToUTF8(a); });
|
||||
#else
|
||||
auto args = AtomCommandLine::argv();
|
||||
auto args = ElectronCommandLine::argv();
|
||||
#endif
|
||||
|
||||
// Feed node the path to initialization script.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue