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

Unified Diff: components/autofill/core/browser/autofill_field.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/autofill_field.cc
diff --git a/components/autofill/core/browser/autofill_field.cc b/components/autofill/core/browser/autofill_field.cc
index f80774fbe81bf0b45daf142c0c2a757b50dcab97..4323e8fca96941e8af768e73fb526c2b0c789e31 100644
--- a/components/autofill/core/browser/autofill_field.cc
+++ b/components/autofill/core/browser/autofill_field.cc
@@ -169,16 +169,16 @@ bool FillCreditCardTypeSelectControl(const base::string16& value,
FormFieldData* field) {
// Try stripping off spaces.
base::string16 value_stripped;
- RemoveChars(StringToLowerASCII(value), base::kWhitespaceUTF16,
- &value_stripped);
+ base::RemoveChars(StringToLowerASCII(value), base::kWhitespaceUTF16,
+ &value_stripped);
for (size_t i = 0; i < field->option_values.size(); ++i) {
base::string16 option_value_lowercase;
- RemoveChars(StringToLowerASCII(field->option_values[i]),
- base::kWhitespaceUTF16, &option_value_lowercase);
+ base::RemoveChars(StringToLowerASCII(field->option_values[i]),
+ base::kWhitespaceUTF16, &option_value_lowercase);
base::string16 option_contents_lowercase;
- RemoveChars(StringToLowerASCII(field->option_contents[i]),
- base::kWhitespaceUTF16, &option_contents_lowercase);
+ base::RemoveChars(StringToLowerASCII(field->option_contents[i]),
+ base::kWhitespaceUTF16, &option_contents_lowercase);
// Perform a case-insensitive comparison; but fill the form with the
// original text, not the lowercased version.
@@ -292,7 +292,7 @@ void FillStreetAddress(const base::string16& value,
const char16 kNewline[] = { '\n', 0 };
const base::string16 separator =
l10n_util::GetStringUTF16(IDS_AUTOFILL_ADDRESS_LINE_SEPARATOR);
- ReplaceChars(value, kNewline, separator, &one_line_value);
+ base::ReplaceChars(value, kNewline, separator, &one_line_value);
field->value = one_line_value;
}

Powered by Google App Engine
This is Rietveld 408576698