refactor: move impl functions into private namespace (#43372)

This commit is contained in:
Charles Kerr
2024-08-21 15:26:06 -05:00
committed by GitHub
parent f366caac84
commit 4fbf18a021
10 changed files with 40 additions and 8 deletions

View File

@@ -102,10 +102,6 @@ void SetCrashKeyStub(const std::string& key, const std::string& value) {}
void ClearCrashKeyStub(const std::string& key) {}
#endif
} // namespace
namespace electron {
v8::Local<v8::Value> GetParameters(v8::Isolate* isolate) {
std::map<std::string, std::string> keys;
#if !IS_MAS_BUILD()
@@ -114,6 +110,10 @@ v8::Local<v8::Value> GetParameters(v8::Isolate* isolate) {
return gin::ConvertToV8(isolate, keys);
}
} // namespace
namespace electron {
int NodeMain(int argc, char* argv[]) {
bool initialized = base::CommandLine::Init(argc, argv);
if (!initialized) {