Index: content/common/dwrite_font_platform_win.cc |
diff --git a/content/common/dwrite_font_platform_win.cc b/content/common/dwrite_font_platform_win.cc |
index aa9d98fb058ebb8b3dedd57e33ece6a802dfa99f..d5a6c81db87af3f15d1f72d18c2e10d9b9e3d531 100644 |
--- a/content/common/dwrite_font_platform_win.cc |
+++ b/content/common/dwrite_font_platform_win.cc |
@@ -787,8 +787,7 @@ bool FontCollectionLoader::LoadFontListFromRegistry() { |
// we will ignore all other registry entries. |
std::vector<base::FilePath::StringType> components; |
path.GetComponents(&components); |
- if ((components.size() == 1 && |
- value.size() < kMaxFontFileNameLength - 1) || |
+ if (components.size() == 1 || |
base::FilePath::CompareEqualIgnoreCase(system_font_path.value(), |
path.DirName().value())) { |
bool should_ignore = false; |