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

Unified Diff: ui/base/accelerators/menu_label_accelerator_util_linux.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: ui/base/accelerators/menu_label_accelerator_util_linux.cc
diff --git a/ui/base/accelerators/menu_label_accelerator_util_linux.cc b/ui/base/accelerators/menu_label_accelerator_util_linux.cc
index 21697ea1d6f91678e8070aca6844209c22ff1f15..0a00f82e09476c0d5d49a1942f4873bce78653df 100644
--- a/ui/base/accelerators/menu_label_accelerator_util_linux.cc
+++ b/ui/base/accelerators/menu_label_accelerator_util_linux.cc
@@ -55,7 +55,7 @@ std::string RemoveWindowsStyleAccelerators(const std::string& label) {
// underscores doubled, making the string that appears to the user just |x|.
std::string EscapeWindowsStyleAccelerators(const std::string& label) {
std::string ret;
- ReplaceChars(label, "&", "&&", &ret);
+ base::ReplaceChars(label, "&", "&&", &ret);
return ret;
}

Powered by Google App Engine
This is Rietveld 408576698