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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 years, 6 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_win.cc ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
index b3289ffc82d109e09b9a3740ce239110c83ba53b..9c3a00e9ec0e38a42346416ec22fe5d385ce0831 100644
--- a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
@@ -510,12 +510,14 @@ bool IsMatchDeviceType(const std::string& match_type) {
// Parse a boolean value keyword (e.g., on/off, true/false).
int ParseBooleanKeyword(const std::string& value) {
- for (size_t i = 0; i < arraysize(kTrue); ++i)
- if (LowerCaseEqualsASCII(value, kTrue[i]))
+ for (size_t i = 0; i < arraysize(kTrue); ++i) {
+ if (base::LowerCaseEqualsASCII(value, kTrue[i]))
return 1;
- for (size_t i = 0; i < arraysize(kFalse); ++i)
- if (LowerCaseEqualsASCII(value, kFalse[i]))
+ }
+ for (size_t i = 0; i < arraysize(kFalse); ++i) {
+ if (base::LowerCaseEqualsASCII(value, kFalse[i]))
return -1;
+ }
return 0;
}
« no previous file with comments | « ui/base/l10n/l10n_util_win.cc ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698