Skip to content

Commit

Permalink
Hide default browser app menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
emerick committed Feb 28, 2025
1 parent 3d612ab commit b58941e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chromium_src/chrome/browser/ui/ui_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.

#include "chrome/browser/ui/ui_features.h"

#define kShowDefaultBrowserAppMenuItem kShowDefaultBrowserAppMenuItem_Unused
#include "src/chrome/browser/ui/ui_features.cc"
#undef kShowDefaultBrowserAppMenuItem

#include "base/feature_list.h"
#include "base/feature_override.h"

namespace features {
Expand All @@ -17,4 +20,7 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{
{kTabHoverCardImages, base::FEATURE_DISABLED_BY_DEFAULT},
}});

const base::FeatureParam<bool> kShowDefaultBrowserAppMenuItem{
&kDefaultBrowserPromptRefresh, "show_app_menu_item", false};

} // namespace features

0 comments on commit b58941e

Please sign in to comment.