Index: chrome/browser/ui/prefs/prefs_tab_helper.cc |
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.cc b/chrome/browser/ui/prefs/prefs_tab_helper.cc |
index 19c396d25e8a4190f64c6a9d925323177e7e91fb..e57c8a9e1c802414366c56f857b1ce0a8133e0e4 100644 |
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc |
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc |
@@ -137,7 +137,8 @@ void RegisterFontFamilyMapObserver( |
PrefChangeRegistrar* registrar, |
const char* map_name, |
const PrefChangeRegistrar::NamedChangeCallback& obs) { |
- DCHECK(base::StartsWithASCII(map_name, "webkit.webprefs.", true)); |
+ DCHECK(base::StartsWith(map_name, "webkit.webprefs.", |
+ base::CompareCase::SENSITIVE)); |
for (size_t i = 0; i < prefs::kWebKitScriptsForFontFamilyMapsLength; ++i) { |
const char* script = prefs::kWebKitScriptsForFontFamilyMaps[i]; |
@@ -149,7 +150,8 @@ void RegisterFontFamilyMapObserver( |
// On Windows with antialising we want to use an alternate fixed font like |
// Consolas, which looks much better than Courier New. |
bool ShouldUseAlternateDefaultFixedFont(const std::string& script) { |
- if (!base::StartsWithASCII(script, "courier", false)) |
+ if (!base::StartsWith(script, "courier", |
+ base::CompareCase::INSENSITIVE_ASCII)) |
return false; |
UINT smooth_type = 0; |
SystemParametersInfo(SPI_GETFONTSMOOTHINGTYPE, 0, &smooth_type, 0); |