1 // Copyright 2022 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef BASE_WIN_DEFAULT_APPS_UTIL_H_ 6 #define BASE_WIN_DEFAULT_APPS_UTIL_H_ 7 8 #include <string_view> 9 10 #include "base/base_export.h" 11 12 namespace base::win { 13 14 // Launches the Windows 'settings' modern app with the 'default apps' view 15 // focused. If `protocol` is not empty, it also highlights the `protocol` in 16 // the dialog. Returns true if the default apps dialog was successfully opened, 17 // and the `protocol`, if not empty, was highlighted. 18 BASE_EXPORT bool LaunchDefaultAppsSettingsModernDialog( 19 std::wstring_view protocol); 20 21 } // namespace base::win 22 23 #endif // BASE_WIN_DEFAULT_APPS_UTIL_H_ 24