|
@@ -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;
|