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

Unified Diff: ui/gfx/font_list.cc

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (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/base/l10n/l10n_util.cc ('k') | ui/gfx/font_list_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_list.cc
diff --git a/ui/gfx/font_list.cc b/ui/gfx/font_list.cc
index d0df02365adbcc06a52090ba84fa9a8d9d3863ca..7bdf903140b4f93ccd5d66f8d477c2ee59bd4f02 100644
--- a/ui/gfx/font_list.cc
+++ b/ui/gfx/font_list.cc
@@ -50,7 +50,7 @@ bool FontList::ParseDescription(const std::string& description,
// The size takes the form "<INT>px".
std::string size_string = styles.back();
styles.pop_back();
- if (!base::EndsWith(size_string, "px", true /* case_sensitive */))
+ if (!base::EndsWith(size_string, "px", base::CompareCase::SENSITIVE))
return false;
size_string.resize(size_string.size() - 2);
if (!base::StringToInt(size_string, size_pixels_out) ||
@@ -100,7 +100,7 @@ void FontList::SetDefaultFontDescription(const std::string& font_description) {
// The description string must end with "px" for size in pixel, or must be
// the empty string, which specifies to use a single default font.
DCHECK(font_description.empty() ||
- base::EndsWith(font_description, "px", true));
+ base::EndsWith(font_description, "px", base::CompareCase::SENSITIVE));
g_default_font_description.Get() = font_description;
g_default_impl_initialized = false;
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/gfx/font_list_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698