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

Unified Diff: chromeos/system/name_value_pairs_parser.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: chromeos/system/name_value_pairs_parser.cc
diff --git a/chromeos/system/name_value_pairs_parser.cc b/chromeos/system/name_value_pairs_parser.cc
index 31ba010de1fa1c68f33a1475430b76ec1842a3fa..b5e11f4c51a6ac925ae75bb1dc1a055092d67e9f 100644
--- a/chromeos/system/name_value_pairs_parser.cc
+++ b/chromeos/system/name_value_pairs_parser.cc
@@ -91,8 +91,8 @@ bool NameValuePairsParser::ParseNameValuePairsWithComments(
std::string key;
std::string value;
- TrimString(pair.substr(0, eq_pos), kTrimChars, &key);
- TrimString(pair.substr(eq_pos + 1, value_size), kTrimChars, &value);
+ base::TrimString(pair.substr(0, eq_pos), kTrimChars, &key);
+ base::TrimString(pair.substr(eq_pos + 1, value_size), kTrimChars, &value);
if (!key.empty()) {
AddNameValuePair(key, value);

Powered by Google App Engine
This is Rietveld 408576698