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 "base/base_export.h" 9 #include "base/strings/string_piece.h" 10 11 namespace base::win { 12 13 // Launches the Windows 'settings' modern app with the 'default apps' view 14 // focused. If `protocol` is not empty, it also highlights the `protocol` in 15 // the dialog. Returns true if the default apps dialog was successfully opened, 16 // and the `protocol`, if not empty, was highlighted. 17 BASE_EXPORT bool LaunchDefaultAppsSettingsModernDialog( 18 base::WStringPiece protocol); 19 20 } // namespace base::win 21 22 #endif // BASE_WIN_DEFAULT_APPS_UTIL_H_ 23