--- a/chrome/browser/ui/browser.cc +++ b/chrome/browser/ui/browser.cc @@ -3825,6 +3825,10 @@ void Browser::UpdateBookmarkBarState(Boo } bool Browser::ShouldShowBookmarkBar() const { + if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("bookmark-bar-ntp") == "never") { + return false; + } + if (profile_->IsGuestSession()) { return false; } --- a/chrome/browser/ungoogled_flag_choices.h +++ b/chrome/browser/ungoogled_flag_choices.h @@ -34,4 +34,10 @@ const FeatureEntry::Choice kScrollEventC "scroll-tabs", "never"} }; +const FeatureEntry::Choice kBookmarkBarNewTab[] = { + {flags_ui::kGenericExperimentChoiceDefault, "", ""}, + {"Never", + "bookmark-bar-ntp", + "never"}, +}; #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ --- a/chrome/browser/ungoogled_flag_entries.h +++ b/chrome/browser/ungoogled_flag_entries.h @@ -36,4 +36,8 @@ "Scroll switches tab", "Switch to the left/right tab if the wheel-scroll happens over the tabstrip, or the empty space beside the tabstrip. ungoogled-chromium flag.", kOsDesktop, MULTI_VALUE_TYPE(kScrollEventChangesTab)}, + {"bookmark-bar-ntp", + "Bookmark Bar on New-Tab-Page", + "Disable the Bookmark Bar on the New-Tab-Page. ungoogled-chromium flag.", + kOsDesktop, MULTI_VALUE_TYPE(kBookmarkBarNewTab)}, #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_