refactor: move impl functions into private namespace (#43372)
This commit is contained in:
parent
f366caac84
commit
4fbf18a021
10 changed files with 40 additions and 8 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue