refactor: use auto env = base::Environment::Create(); everywhere (#29502)
This commit is contained in:
parent
5929d6335f
commit
00693bab30
11 changed files with 14 additions and 14 deletions
|
@ -160,7 +160,7 @@ void OverrideLinuxAppDataPath() {
|
|||
base::FilePath path;
|
||||
if (base::PathService::Get(DIR_APP_DATA, &path))
|
||||
return;
|
||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
auto env = base::Environment::Create();
|
||||
path = base::nix::GetXDGDirectory(env.get(), base::nix::kXdgConfigHomeEnvVar,
|
||||
base::nix::kDotConfigDir);
|
||||
base::PathService::Override(DIR_APP_DATA, path);
|
||||
|
@ -313,7 +313,7 @@ int ElectronBrowserMainParts::PreCreateThreads() {
|
|||
// which keys off of getenv("LC_ALL").
|
||||
// We must set this env first to make ui::ResourceBundle accept the custom
|
||||
// locale.
|
||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
auto env = base::Environment::Create();
|
||||
absl::optional<std::string> lc_all;
|
||||
if (!locale.empty()) {
|
||||
std::string str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue