Index: ui/gfx/render_text_harfbuzz.cc |
diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc |
index 543c62596bc19c09752324f19de3234ff234fd4d..775fb1c38c5776149276acb48691ab109efbd27a 100644 |
--- a/ui/gfx/render_text_harfbuzz.cc |
+++ b/ui/gfx/render_text_harfbuzz.cc |
@@ -530,7 +530,7 @@ class HarfBuzzLineBreaker { |
// Function object for case insensitive string comparison. |
struct CaseInsensitiveCompare { |
bool operator() (const std::string& a, const std::string& b) const { |
- return base::strncasecmp(a.c_str(), b.c_str(), b.length()) < 0; |
+ return base::CompareCaseInsensitiveASCII(a, b) < 0; |
} |
}; |