From 26f5390ac03baa4db18e07cba3adcc8dc478725a Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 10 May 2018 13:59:48 -0700 Subject: [PATCH] Don't declare IsDesktopEnvironmentUnity on non-Linux --- brightray/browser/views/views_delegate.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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