diff --git a/brightray/browser/views/views_delegate.cc b/brightray/browser/views/views_delegate.cc index 4b14b1cddb06..061feee552a6 100644 --- a/brightray/browser/views/views_delegate.cc +++ b/brightray/browser/views/views_delegate.cc @@ -15,16 +15,14 @@ namespace { -bool IsDesktopEnvironmentUnity() { #if defined(OS_LINUX) +bool IsDesktopEnvironmentUnity() { std::unique_ptr env(base::Environment::Create()); base::nix::DesktopEnvironment desktop_env = base::nix::GetDesktopEnvironment(env.get()); return desktop_env == base::nix::DESKTOP_ENVIRONMENT_UNITY; -#else - return false; -#endif } +#endif } // namespace