| Index: chrome/common/chrome_content_client.cc
|
| diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
|
| index f26d3b9bab2dee4523914d88064bdda5001b3bad..86e2bc415665e7a41aa777bd36eed2383b14fb2c 100644
|
| --- a/chrome/common/chrome_content_client.cc
|
| +++ b/chrome/common/chrome_content_client.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/common/chrome_content_client.h"
|
|
|
| #include "base/command_line.h"
|
| +#include "base/cpu.h"
|
| #include "base/debug/crash_logging.h"
|
| #include "base/files/file_util.h"
|
| #include "base/path_service.h"
|
| @@ -73,9 +74,9 @@
|
| const char kPDFPluginExtension[] = "pdf";
|
| const char kPDFPluginDescription[] = "Portable Document Format";
|
| const char kPDFPluginPrintPreviewMimeType[] =
|
| - "application/x-google-chrome-print-preview-pdf";
|
| + "application/x-google-chrome-print-preview-pdf";
|
| const char kPDFPluginOutOfProcessMimeType[] =
|
| - "application/x-google-chrome-pdf";
|
| + "application/x-google-chrome-pdf";
|
| const uint32 kPDFPluginPermissions = ppapi::PERMISSION_PRIVATE |
|
| ppapi::PERMISSION_DEV;
|
|
|
| @@ -395,6 +396,12 @@
|
| if (force_disable)
|
| return false;
|
|
|
| +// For Linux ia32, Flapper requires SSE2.
|
| +#if defined(OS_LINUX) && defined(ARCH_CPU_X86)
|
| + if (!base::CPU().has_sse2())
|
| + return false;
|
| +#endif // ARCH_CPU_X86
|
| +
|
| base::FilePath flash_path;
|
| if (!PathService::Get(chrome::FILE_PEPPER_FLASH_PLUGIN, &flash_path))
|
| return false;
|
|
|