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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 459603003: Cleanup: Remove unneeded SSE2 checks and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index cb1e988b9a0156d4dd94eecc3ecf87e8e7c68bdf..f05d4117f06dab543e1a4f5e6ba61a7eb58dba7a 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -5,7 +5,6 @@
#include "chrome/common/chrome_content_client.h"
#include "base/command_line.h"
-#include "base/cpu.h"
#include "base/debug/crash_logging.h"
#include "base/file_util.h"
#include "base/path_service.h"
@@ -68,9 +67,9 @@ const char kPDFPluginMimeType[] = "application/pdf";
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;
@@ -402,12 +401,6 @@ bool GetBundledPepperFlash(content::PepperPluginInfo* plugin) {
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;

Powered by Google App Engine
This is Rietveld 408576698