| 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 cde379153b64eb4c48f5599d39809f0ec5588cbb..c12564c41f8169f89289117a70610203079dc41c 100644
|
| --- a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
|
| +++ b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
|
| @@ -1078,8 +1078,7 @@ void GesturePropertyProvider::ParseXorgConfFile(const std::string& content) {
|
| // one.
|
| if (is_parsing) {
|
| // Stop parsing the current line if the format is wrong.
|
| - if (piece.size() <= 2 || piece[0] != '\"' ||
|
| - piece[piece.size() - 1] != '\"') {
|
| + if (piece.size() <= 2 || piece[0] != '\"' || piece.back() != '\"') {
|
| LOG(ERROR) << "Error parsing line: " << lines.token();
|
| has_error = true;
|
| if (next_is_section_type)
|
|
|