Index: chrome/test/chromedriver/element_util.cc |
diff --git a/chrome/test/chromedriver/element_util.cc b/chrome/test/chromedriver/element_util.cc |
index 274449f7b2c992a3229ef9c405498519af986ced..ddd7db8d841b5f98d56ea8b79dc8db12c5696ae1 100644 |
--- a/chrome/test/chromedriver/element_util.cc |
+++ b/chrome/test/chromedriver/element_util.cc |
@@ -338,10 +338,12 @@ Status IsElementAttributeEqualToIgnoreCase( |
if (status.IsError()) |
return status; |
std::string actual_value; |
- if (result->GetAsString(&actual_value)) |
- *is_equal = LowerCaseEqualsASCII(actual_value, attribute_value.c_str()); |
- else |
+ if (result->GetAsString(&actual_value)) { |
+ *is_equal = |
+ base::LowerCaseEqualsASCII(actual_value, attribute_value.c_str()); |
+ } else { |
*is_equal = false; |
+ } |
return status; |
} |