blob: 65f6836fcf6239f42ea72059a65890afb5d897e9 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_WIN_DEFAULT_APPS_UTIL_H_
#define BASE_WIN_DEFAULT_APPS_UTIL_H_
#include <string_view>
#include "base/base_export.h"
namespace base::win {
// Launches the Windows 'settings' modern app with the 'default apps' view
// focused. On Windows 10, if `protocol` is not empty, it also highlights
// the `protocol` in the dialog. Returns true if the default apps dialog was
// successfully opened, and the `protocol`, if not empty, was highlighted.
BASE_EXPORT bool LaunchDefaultAppsSettingsModernDialog(
std::wstring_view protocol);
} // namespace base::win
#endif // BASE_WIN_DEFAULT_APPS_UTIL_H_