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

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

Issue 102843002: Move RemoveChars, ReplaceChars, TrimString, and TruncateUTF8ToByteSize to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/credit_card.cc
diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc
index 96177983264218b1084aeb118bf4e483ec43c5a8..92e82c3125a05c46553a78233c39763d9cc5dd02 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -133,9 +133,9 @@ CreditCard::~CreditCard() {}
// static
const base::string16 CreditCard::StripSeparators(const base::string16& number) {
- const char16 kSeparators[] = {'-', ' ', '\0'};
+ const base::char16 kSeparators[] = {'-', ' ', '\0'};
base::string16 stripped;
- RemoveChars(number, kSeparators, &stripped);
+ base::RemoveChars(number, kSeparators, &stripped);
return stripped;
}

Powered by Google App Engine
This is Rietveld 408576698