Index: ui/gfx/test/fontconfig_util_linux.cc |
diff --git a/ui/gfx/test/fontconfig_util_linux.cc b/ui/gfx/test/fontconfig_util_linux.cc |
index e2f5140b682cf97e926d70e6685cdd10c3317d2f..609a3fca8bdae1d6acdc58557769b65b4ea423fe 100644 |
--- a/ui/gfx/test/fontconfig_util_linux.cc |
+++ b/ui/gfx/test/fontconfig_util_linux.cc |
@@ -100,8 +100,7 @@ bool LoadFontIntoFontconfig(const base::FilePath& path) { |
bool LoadSystemFontIntoFontconfig(const std::string& basename) { |
for (size_t i = 0; i < kNumSystemFontsForFontconfig; ++i) { |
base::FilePath path(kSystemFontsForFontconfig[i]); |
- if (base::strcasecmp(path.BaseName().value().c_str(), basename.c_str()) == |
- 0) |
+ if (base::EqualsCaseInsensitiveASCII(path.BaseName().value(), basename)) |
return LoadFontIntoFontconfig(path); |
} |
LOG(ERROR) << "Unable to find system font named " << basename; |