Index: content/ppapi_plugin/ppapi_thread.cc |
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc |
index 1618519a586b3d86901e16ed338cddf95fd05b23..f547eea2f06b79b609fdfa9a9a8ebfa2d9676e6e 100644 |
--- a/content/ppapi_plugin/ppapi_thread.cc |
+++ b/content/ppapi_plugin/ppapi_thread.cc |
@@ -51,6 +51,7 @@ |
#if defined(OS_WIN) |
#include "base/win/win_util.h" |
#include "base/win/windows_version.h" |
+#include "content/common/font_warmup_win.h" |
#include "sandbox/win/src/sandbox.h" |
#elif defined(OS_MACOSX) |
#include "content/common/sandbox_init_mac.h" |
@@ -404,6 +405,11 @@ void PpapiThread::OnLoadPlugin(const base::FilePath& path, |
WarmupWindowsLocales(permissions); |
+ if (!base::win::IsUser32AndGdi32Available() && |
+ permissions.HasPermission(ppapi::PERMISSION_FLASH)) { |
+ PatchGdiFontEnumeration(path); |
+ } |
+ |
g_target_services->LowerToken(); |
} |
#endif |