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

Unified Diff: chrome/utility/importer/bookmark_html_reader.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: chrome/utility/importer/bookmark_html_reader.cc
diff --git a/chrome/utility/importer/bookmark_html_reader.cc b/chrome/utility/importer/bookmark_html_reader.cc
index d8fa9acbf43c832e78f99d3722002a494b88f95b..11b7c22926e984e442c1ffdae9dade4543c16c19 100644
--- a/chrome/utility/importer/bookmark_html_reader.cc
+++ b/chrome/utility/importer/bookmark_html_reader.cc
@@ -110,7 +110,7 @@ void ImportBookmarksFile(
(cancellation_callback.is_null() || !cancellation_callback.Run());
++i) {
std::string line;
- TrimString(lines[i], " ", &line);
+ base::TrimString(lines[i], " ", &line);
// Remove "<HR>" if |line| starts with it. "<HR>" is the bookmark entries
// separator in Firefox that Chrome does not support. Note that there can be
@@ -119,7 +119,7 @@ void ImportBookmarksFile(
static const char kHrTag[] = "<HR>";
while (StartsWithASCII(line, kHrTag, false)) {
line.erase(0, arraysize(kHrTag) - 1);
- TrimString(line, " ", &line);
+ base::TrimString(line, " ", &line);
}
// Get the encoding of the bookmark file.

Powered by Google App Engine
This is Rietveld 408576698