diff options
author | thestig <thestig@chromium.org> | 2014-08-26 23:34:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-27 06:35:31 +0000 |
commit | 55234498566db7ff749af32df42eafce48d2837c (patch) | |
tree | b8c4b4d5b4fbc7204c71abb27ae2e3167f179059 /chrome/browser/upgrade_detector_impl.cc | |
parent | 17e71b798adba6be1c3c96df6f891e730e8a89f9 (diff) | |
download | chromium_src-55234498566db7ff749af32df42eafce48d2837c.zip chromium_src-55234498566db7ff749af32df42eafce48d2837c.tar.gz chromium_src-55234498566db7ff749af32df42eafce48d2837c.tar.bz2 |
Revert of Cleanup: Remove unneeded SSE2 checks and unused code. (patchset #4 of https://codereview.chromium.org/459603003/)
Reason for revert:
Passed the win x64 trybot, but failed on the win 64 builder.
Original issue's description:
> Cleanup: Remove unneeded SSE2 checks and unused code.
>
> BUG=349320
>
> Committed: https://chromium.googlesource.com/chromium/src/+/b2cd99b39c3744f61231f8818f6c7a3d2881f0f0
TBR=cpu@chromium.org,dalecurtis@chromium.org,senorblanco@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=349320
Review URL: https://codereview.chromium.org/513663002
Cr-Commit-Position: refs/heads/master@{#292101}
Diffstat (limited to 'chrome/browser/upgrade_detector_impl.cc')
-rw-r--r-- | chrome/browser/upgrade_detector_impl.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/upgrade_detector_impl.cc b/chrome/browser/upgrade_detector_impl.cc index 7ce3eb0..58061e3 100644 --- a/chrome/browser/upgrade_detector_impl.cc +++ b/chrome/browser/upgrade_detector_impl.cc @@ -9,6 +9,7 @@ #include "base/bind.h" #include "base/build_time.h" #include "base/command_line.h" +#include "base/cpu.h" #include "base/files/file_path.h" #include "base/memory/scoped_ptr.h" #include "base/memory/singleton.h" @@ -403,6 +404,11 @@ bool UpgradeDetectorImpl::DetectOutdatedInstall() { // Don't show the update bubbles to enterprise users (i.e., on a domain). if (base::win::IsEnrolledToDomain()) return false; + + // On Windows, we don't want to warn about outdated installs when the + // machine doesn't support SSE2, it's been deprecated starting with M35. + if (!base::CPU().has_sse2()) + return false; #endif } |