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

Unified Diff: chrome/test/chromedriver/element_util.cc

Issue 2779893005: Continue to clean c_str() calls. (Closed)
Patch Set: Revert changes in font_service_app.cc Created 3 years, 9 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
Index: chrome/test/chromedriver/element_util.cc
diff --git a/chrome/test/chromedriver/element_util.cc b/chrome/test/chromedriver/element_util.cc
index b564824656948cbe7f5df3b2bf220e1a63b06cd0..0af81f15ec811f4645741a82b19730c49f38bb95 100644
--- a/chrome/test/chromedriver/element_util.cc
+++ b/chrome/test/chromedriver/element_util.cc
@@ -346,8 +346,7 @@ Status IsElementAttributeEqualToIgnoreCase(
return status;
std::string actual_value;
if (result->GetAsString(&actual_value)) {
- *is_equal =
- base::LowerCaseEqualsASCII(actual_value, attribute_value.c_str());
+ *is_equal = base::LowerCaseEqualsASCII(actual_value, attribute_value);
} else {
*is_equal = false;
}

Powered by Google App Engine
This is Rietveld 408576698