Index: chrome/test/chromedriver/element_util.cc |
diff --git a/chrome/test/chromedriver/element_util.cc b/chrome/test/chromedriver/element_util.cc |
index e8714d3d33ef980e43ef819db7bf1560e687bc5e..6a3ee195f5aacab89d07d1fae005f79e5e1d2137 100644 |
--- a/chrome/test/chromedriver/element_util.cc |
+++ b/chrome/test/chromedriver/element_util.cc |
@@ -337,10 +337,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; |
} |