Simplify some using-s

This commit is contained in:
Ilya Fedin 2023-09-16 09:13:39 +04:00 committed by John Preston
parent 76ac6c3be7
commit 8ea4f26e31
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ namespace {
constexpr auto kXDPOpenURIInterface = "org.freedesktop.portal.OpenURI";
constexpr auto kPropertiesInterface = "org.freedesktop.DBus.Properties";
const auto XdgActivationToken = base::Platform::XdgActivationToken;
using base::Platform::XdgActivationToken;
} // namespace

View File

@ -539,8 +539,8 @@ bool SkipTaskbarSupported() {
}
bool RunInBackground() {
using Ui::Platform::TitleControl;
const auto layout = Ui::Platform::TitleControlsLayout();
using TitleControl = Ui::Platform::TitleControl;
return (ranges::contains(layout.left, TitleControl::Close)
|| ranges::contains(layout.right, TitleControl::Close))
&& !ranges::contains(layout.left, TitleControl::Minimize)