Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Unified Diff: chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc

Issue 205053002: Merge 256498 "Windows PIII (non-SSE2) deprecation infobar" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc
===================================================================
--- chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc (revision 258055)
+++ chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/startup/obsolete_system_infobar_delegate.h"
+#include "base/cpu.h"
#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/common/url_constants.h"
@@ -40,6 +41,10 @@
// Ubuntu Precise: GTK 2.24
if (!gtk_check_version(2, 24, 0))
return;
+#elif defined(OS_WIN)
+ // On Windows we no longer support non-SSE2 machines since Chrome 35.
+ if (base::CPU().has_sse2())
+ return;
#else
// No other platforms currently show this infobar.
return;
@@ -59,6 +64,8 @@
base::string16 ObsoleteSystemInfoBarDelegate::GetMessageText() const {
#if defined(OS_MACOSX)
return ObsoleteSystemMac::LocalizedObsoleteSystemString();
+#elif defined(OS_WIN)
+ return l10n_util::GetStringUTF16(IDS_WIN_SSE_OBSOLETE_NOW);
#else
return l10n_util::GetStringUTF16(IDS_SYSTEM_OBSOLETE_MESSAGE);
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698