blob: 2b6eff6ab87f9d8b46cb9c2ac29ac7b45bda272c [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/scoped_disable_client_side_decorations_for_test.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_OZONE)
#include "ui/ozone/public/ozone_platform.h"
#endif
namespace ui {
ScopedDisableClientSideDecorationsForTest::
ScopedDisableClientSideDecorationsForTest() {
#if BUILDFLAG(IS_OZONE)
if (auto* platform_utils = OzonePlatform::GetInstance()->GetPlatformUtils()) {
disabled_csd_ = platform_utils->DisableClientSideDecorationsForTest();
}
#endif
}
ScopedDisableClientSideDecorationsForTest::
~ScopedDisableClientSideDecorationsForTest() = default;
} // namespace ui