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

Unified Diff: chrome/plugin/plugin_main.cc

Issue 517031: linux: work around LAHF bug in Flash (Closed)
Patch Set: comment Created 10 years, 12 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/plugin/plugin_main.cc
diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc
index 1cbcc576e7db2c63f9397385bd1166f022f9b7c2..1e77325d21f10a01b4e28d158e5fea6c2a2a45bb 100644
--- a/chrome/plugin/plugin_main.cc
+++ b/chrome/plugin/plugin_main.cc
@@ -39,7 +39,10 @@ void TrimInterposeEnvironment();
// Initializes the global Cocoa application object.
void InitializeChromeApplication();
-#endif // OS_MACOSX
+#elif defined(OS_LINUX)
+// Work around an unimplemented instruction in 64-bit Flash.
+void WorkaroundFlashLAHF();
+#endif
// main() routine for running as the plugin process.
int PluginMain(const MainFunctionParams& parameters) {
@@ -67,6 +70,11 @@ int PluginMain(const MainFunctionParams& parameters) {
// process name that shows up in "ps" etc. for plugins show as "exe"
// instead of "chrome" or something reasonable. Try to fix it.
CommandLine::SetProcTitle();
+
+#if defined(ARCH_CPU_64_BITS)
+ WorkaroundFlashLAHF();
+#endif
+
#elif defined(OS_WIN)
sandbox::TargetServices* target_services =
parameters.sandbox_info_.TargetServices();

Powered by Google App Engine
This is Rietveld 408576698