refactor: use PathProvider for user-data-dir and others (#29649)
* refactor: use PathProvider for user-data-dir and others * consolidate logic for DIR_RECENT and DIR_APP_LOGS into path provider * fix bad include * remove debugging code * fix build on mac * fix build on win * create app logs dir on both mac and non-mac
This commit is contained in:
parent
8b945cb296
commit
ebf54d7cc0
16 changed files with 115 additions and 108 deletions
|
@ -165,7 +165,7 @@ bool ElectronCrashReporterClient::GetCrashDumpLocation(
|
|||
#if defined(OS_MAC) || defined(OS_LINUX)
|
||||
bool ElectronCrashReporterClient::GetCrashMetricsLocation(
|
||||
base::FilePath* metrics_dir) {
|
||||
return base::PathService::Get(electron::DIR_USER_DATA, metrics_dir);
|
||||
return base::PathService::Get(chrome::DIR_USER_DATA, metrics_dir);
|
||||
}
|
||||
#endif // OS_MAC || OS_LINUX
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue