blob: ad480049e7d1251974a866de8a7722322264c1f8 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/win/titlebar_config.h"
#include "base/command_line.h"
#include "base/win/windows_version.h"
#include "chrome/common/chrome_switches.h"
bool ShouldCustomDrawSystemTitlebar() {
// Cache flag lookup.
static const bool custom_titlebar_disabled =
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableWindows10CustomTitlebar);
return !custom_titlebar_disabled &&
base::win::GetVersion() >= base::win::Version::WIN10;
}