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

Unified Diff: dbus/message.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: dbus/message.cc
diff --git a/dbus/message.cc b/dbus/message.cc
index b52528d9f624ae24ee308ac87040d76d1e7e15bc..918b860090455ca4827741ae6733c9f1590e113d 100644
--- a/dbus/message.cc
+++ b/dbus/message.cc
@@ -172,7 +172,7 @@ std::string Message::ToStringInternal(const std::string& indent,
output += indent + "string \"" + value + "\"\n";
} else {
std::string truncated;
- TruncateUTF8ToByteSize(value, kTruncateLength, &truncated);
+ base::TruncateUTF8ToByteSize(value, kTruncateLength, &truncated);
base::StringAppendF(&truncated, "... (%" PRIuS " bytes in total)",
value.size());
output += indent + "string \"" + truncated + "\"\n";

Powered by Google App Engine
This is Rietveld 408576698