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

Unified Diff: chrome/test/chromedriver/element_util.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 | « chrome/renderer/web_apps.cc ('k') | chrome/utility/importer/bookmark_html_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/renderer/web_apps.cc ('k') | chrome/utility/importer/bookmark_html_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698