diff --git a/brightray/browser/views/views_delegate.cc b/brightray/browser/views/views_delegate.cc index 0546026abd9f..2cca70d1cef5 100644 --- a/brightray/browser/views/views_delegate.cc +++ b/brightray/browser/views/views_delegate.cc @@ -16,10 +16,14 @@ namespace { bool IsDesktopEnvironmentUnity() { +#if defined(OS_LINUX) 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 } } // namespace