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

Unified Diff: ui/gfx/test/fontconfig_util_linux.cc

Issue 1224553010: Replace base::str[n]casecmp with helper functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « ui/gfx/render_text_harfbuzz.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ui/gfx/render_text_harfbuzz.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698