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; |
} |