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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 40 additions and 8 deletions

View file

@ -81,6 +81,8 @@ const std::map<std::string, std::string>& GetGlobalCrashKeys() {
return GetGlobalCrashKeysMutable();
}
namespace {
bool GetClientIdPath(base::FilePath* path) {
if (base::PathService::Get(electron::DIR_CRASH_DUMPS, path)) {
*path = path->Append("client_id");
@ -109,6 +111,8 @@ void WriteClientId(const std::string& client_id) {
base::WriteFile(client_id_path, client_id);
}
} // namespace
std::string GetClientId() {
static base::NoDestructor<std::string> client_id;
if (!client_id->empty())