Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index 0a37f6112bfebd8f99618f9ca1146878d04889db..605b017355a379ca4f7162597516d9c94350b7c0 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -571,6 +571,14 @@ bool ShouldUseDirectWrite() { |
if (base::win::GetVersion() < base::win::VERSION_WIN7) |
return false; |
+ base::win::OSInfo::VersionNumber os_version = |
+ base::win::OSInfo::GetInstance()->version_number(); |
+ if ((os_version.major == 6) && (os_version.minor == 1)) { |
+ // We can't use DirectWrite for pre-release versions of Windows 7. |
+ if (os_version.build < 7600) |
+ return false; |
+ } |
+ |
// If forced off, don't use it. |
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
if (command_line.HasSwitch(switches::kDisableDirectWrite)) |