Index: chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc |
diff --git a/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc b/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc |
index 9bbad7574c55bb97e3ffc21778419f198a2d39ec..d2a54392035bba77208afdc01e06659793742509 100644 |
--- a/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc |
+++ b/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc |
@@ -4,17 +4,25 @@ |
#include "chrome/browser/ui/startup/obsolete_system_infobar_delegate.h" |
+#include "chrome/browser/browser_process.h" |
#include "chrome/browser/infobars/infobar_service.h" |
#include "chrome/browser/obsolete_system/obsolete_system.h" |
+#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "chrome/grit/chromium_strings.h" |
#include "components/infobars/core/infobar.h" |
+#include "components/prefs/pref_service.h" |
#include "content/public/browser/web_contents.h" |
#include "grit/components_strings.h" |
#include "ui/base/l10n/l10n_util.h" |
// static |
void ObsoleteSystemInfoBarDelegate::Create(InfoBarService* infobar_service) { |
+ PrefService* local_state = g_browser_process->local_state(); |
+ if (local_state && |
+ local_state->GetBoolean(prefs::kSuppressUnsupportedOSWarning)) { |
+ return; |
+ } |
if (!ObsoleteSystem::IsObsoleteNowOrSoon()) |
return; |
infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar( |