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

Unified Diff: chrome/common/pepper_flash.cc

Issue 1920763004: Support 'mac' architecture for system Flash installs on OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/pepper_flash.cc
diff --git a/chrome/common/pepper_flash.cc b/chrome/common/pepper_flash.cc
index d7a5ac45ef5f11d9181e1a414027ba479eab89c4..cad919947ea4b0f1de6a064de174363a56b38ac5 100644
--- a/chrome/common/pepper_flash.cc
+++ b/chrome/common/pepper_flash.cc
@@ -126,8 +126,16 @@ bool CheckPepperFlashManifest(const base::DictionaryValue& manifest,
std::string arch;
manifest.GetStringASCII("x-ppapi-arch", &arch);
- if (arch != kPepperFlashArch)
+ if (arch != kPepperFlashArch) {
+#if defined(OS_MACOSX)
+ // On Mac OS X the arch is 'x64' for component updated Flash but 'mac' for
+ // system Flash, so accept both variations.
+ if (arch != kPepperFlashOperatingSystem)
+ return false;
+#else
return false;
+#endif
+ }
*version_out = version;
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698