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

Unified Diff: ui/gfx/font_list.cc

Issue 1233453011: Revert of 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 7bdf903140b4f93ccd5d66f8d477c2ee59bd4f02..d0df02365adbcc06a52090ba84fa9a8d9d3863ca 100644
--- a/ui/gfx/font_list.cc
+++ b/ui/gfx/font_list.cc
@@ -50,7 +50,7 @@
// The size takes the form "<INT>px".
std::string size_string = styles.back();
styles.pop_back();
- if (!base::EndsWith(size_string, "px", base::CompareCase::SENSITIVE))
+ if (!base::EndsWith(size_string, "px", true /* case_sensitive */))
return false;
size_string.resize(size_string.size() - 2);
if (!base::StringToInt(size_string, size_pixels_out) ||
@@ -100,7 +100,7 @@
// 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", base::CompareCase::SENSITIVE));
+ base::EndsWith(font_description, "px", true));
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