Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/plugins/npapi/plugin_list.h" | 5 #include "webkit/plugins/npapi/plugin_list.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/cpu.h" | 9 #include "base/cpu.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 std::string sha1; | 69 std::string sha1; |
| 70 PluginQuirk quirks; | 70 PluginQuirk quirks; |
| 71 } bad_entries[] = { | 71 } bad_entries[] = { |
| 72 // Flash 9 r31 - http://crbug.com/29237 | 72 // Flash 9 r31 - http://crbug.com/29237 |
| 73 { 7040080, "fa5803061125ca47846713b34a26a42f1f1e98bb", PLUGIN_QUIRK_NONE }, | 73 { 7040080, "fa5803061125ca47846713b34a26a42f1f1e98bb", PLUGIN_QUIRK_NONE }, |
| 74 // Flash 9 r48 - http://crbug.com/29237 | 74 // Flash 9 r48 - http://crbug.com/29237 |
| 75 { 7040036, "0c4b3768a6d4bfba003088e4b9090d381de1af2b", PLUGIN_QUIRK_NONE }, | 75 { 7040036, "0c4b3768a6d4bfba003088e4b9090d381de1af2b", PLUGIN_QUIRK_NONE }, |
| 76 // Flash 11.2.202.236, 32-bit - http://crbug.com/140086 | 76 // Flash 11.2.202.236, 32-bit - http://crbug.com/140086 |
| 77 { 17406436, "1e07eac912faf9426c52a288c76c3b6238f90b6b", | 77 { 17406436, "1e07eac912faf9426c52a288c76c3b6238f90b6b", |
| 78 PLUGIN_QUIRK_MISSING_SSE2_CHECK }, | 78 PLUGIN_QUIRK_MISSING_SSE2_CHECK }, |
| 79 // Flash 11.2.202.238, 32-bit - http://crbug.com/140086 | |
| 80 { 17410532, "e9401097e97c8443a7d9156be62184ffe1addd5c", | |
|
Bernhard Bauer
2012/09/29 07:36:56
Are we going to need to do this for all Flash vers
| |
| 81 PLUGIN_QUIRK_MISSING_SSE2_CHECK }, | |
| 79 }; | 82 }; |
| 80 | 83 |
| 81 int64 size; | 84 int64 size; |
| 82 if (!file_util::GetFileSize(path, &size)) | 85 if (!file_util::GetFileSize(path, &size)) |
| 83 return false; | 86 return false; |
| 84 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(bad_entries); i++) { | 87 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(bad_entries); i++) { |
| 85 if (bad_entries[i].size != size) | 88 if (bad_entries[i].size != size) |
| 86 continue; | 89 continue; |
| 87 | 90 |
| 88 std::string file_content; | 91 std::string file_content; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 326 | 329 |
| 327 // TODO(evanm): prefer the newest version of flash, etc. here? | 330 // TODO(evanm): prefer the newest version of flash, etc. here? |
| 328 | 331 |
| 329 VLOG_IF(1, PluginList::DebugPluginLoading()) << "Using " << info.path.value(); | 332 VLOG_IF(1, PluginList::DebugPluginLoading()) << "Using " << info.path.value(); |
| 330 | 333 |
| 331 return true; | 334 return true; |
| 332 } | 335 } |
| 333 | 336 |
| 334 } // namespace npapi | 337 } // namespace npapi |
| 335 } // namespace webkit | 338 } // namespace webkit |
| OLD | NEW |