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

Unified Diff: components/autofill/core/browser/validation.cc

Issue 1200053004: Move more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: components/autofill/core/browser/validation.cc
diff --git a/components/autofill/core/browser/validation.cc b/components/autofill/core/browser/validation.cc
index ef7c3305b52113039800275b714b84d5177b7946..d1fc175e0cce62440c133e66f351c77eaebb98e3 100644
--- a/components/autofill/core/browser/validation.cc
+++ b/components/autofill/core/browser/validation.cc
@@ -88,7 +88,7 @@ bool IsValidCreditCardNumber(const base::string16& text) {
for (base::string16::reverse_iterator iter = number.rbegin();
iter != number.rend();
++iter) {
- if (!IsAsciiDigit(*iter))
+ if (!base::IsAsciiDigit(*iter))
return false;
int digit = *iter - '0';
@@ -111,7 +111,7 @@ bool IsValidCreditCardSecurityCode(const base::string16& text) {
for (base::string16::const_iterator iter = text.begin();
iter != text.end();
++iter) {
- if (!IsAsciiDigit(*iter))
+ if (!base::IsAsciiDigit(*iter))
return false;
}
return true;

Powered by Google App Engine
This is Rietveld 408576698