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

Unified Diff: chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc

Issue 1279123004: Replace ToLower calls to the new format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/plugins/plugin_uma.cc ('k') | chrome/test/chromedriver/capabilities.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
diff --git a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
index f47a186a098cf937f290461cd67fb7db55c6580a..d5bda8e518a23ed6c9c103283e699aaea641d1d9 100644
--- a/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
+++ b/chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc
@@ -327,8 +327,7 @@ void PhishingDOMFeatureExtractor::HandleInput(
// Note that we use the attribute value rather than
// WebFormControlElement::formControlType() for consistency with the
// way the phishing classification model is created.
- std::string type = element.getAttribute("type").utf8();
- base::StringToLowerASCII(&type);
+ std::string type = base::ToLowerASCII(element.getAttribute("type").utf8());
if (type == "password") {
++page_feature_state_->num_pswd_inputs;
} else if (type == "radio") {
« no previous file with comments | « chrome/renderer/plugins/plugin_uma.cc ('k') | chrome/test/chromedriver/capabilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698