Update infobar_utils.cc

This commit is contained in:
Alexander David Frick 2023-01-27 04:47:14 -06:00 committed by GitHub
parent f414cf6a42
commit b733494dae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,12 +112,6 @@ void AddInfoBarsIfNecessary(Browser* browser,
infobars::ContentInfoBarManager* infobar_manager =
infobars::ContentInfoBarManager::FromWebContents(web_contents);
if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
PrefService* local_state = g_browser_process->local_state();
if (!local_state ||
!local_state->GetBoolean(prefs::kSuppressUnsupportedOSWarning))
ObsoleteSystemInfoBarDelegate::Create(infobar_manager);
}
#if !BUILDFLAG(IS_CHROMEOS_ASH)