Chromium Code Reviews| Index: chrome/installer/setup/setup_util.cc |
| diff --git a/chrome/installer/setup/setup_util.cc b/chrome/installer/setup/setup_util.cc |
| index d21abf97bd2346c222e2da73cc2d007b6fd668c8..010f21dc7857d0109e71d9bd7d4d54f366a2cc41 100644 |
| --- a/chrome/installer/setup/setup_util.cc |
| +++ b/chrome/installer/setup/setup_util.cc |
| @@ -9,6 +9,7 @@ |
| #include <windows.h> |
| #include "base/command_line.h" |
| +#include "base/cpu.h" |
| #include "base/file_util.h" |
| #include "base/files/file_enumerator.h" |
| #include "base/files/file_path.h" |
| @@ -449,6 +450,10 @@ bool ContainsUnsupportedSwitch(const CommandLine& cmd_line) { |
| return false; |
| } |
| +bool IsProcessorSupported() { |
| + return base::CPU::CPU().has_sse2(); |
| +} |
| + |
|
cpu_(ooo_6.6-7.5)
2014/03/12 17:15:11
I think
return base::CPU().has_sse2();
works, i
grt (UTC plus 2)
2014/03/12 18:24:01
woah. i didn't even realize i duplicated it. yikes
|
| ScopedTokenPrivilege::ScopedTokenPrivilege(const wchar_t* privilege_name) |
| : is_enabled_(false) { |
| HANDLE temp_handle; |