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
|
@ -19,7 +19,7 @@ namespace {
|
|||
|
||||
#if defined(OS_LINUX)
|
||||
bool IsDesktopEnvironmentUnity() {
|
||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
auto env = base::Environment::Create();
|
||||
base::nix::DesktopEnvironment desktop_env =
|
||||
base::nix::GetDesktopEnvironment(env.get());
|
||||
return desktop_env == base::nix::DESKTOP_ENVIRONMENT_UNITY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue