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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.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/browser/tab_contents/render_view_context_menu.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc
index b9e75e829e6744bb92bcf3d557628269341b242d..3ded399708c9fb027e134de77c24b624cf6031c8 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc
@@ -372,7 +372,7 @@ void DevToolsInspectElementAt(RenderViewHost* rvh, int x, int y) {
// Helper function to escape "&" as "&&".
void EscapeAmpersands(string16* text) {
const char16 ampersand[] = {'&', 0};
- ReplaceChars(*text, ampersand, ASCIIToUTF16("&&"), text);
+ base::ReplaceChars(*text, ampersand, ASCIIToUTF16("&&"), text);
}
} // namespace
@@ -1015,8 +1015,8 @@ void RenderViewContextMenu::AppendSearchProvider() {
if (params_.selection_text.empty())
return;
- ReplaceChars(params_.selection_text, AutocompleteMatch::kInvalidChars,
- ASCIIToUTF16(" "), &params_.selection_text);
+ base::ReplaceChars(params_.selection_text, AutocompleteMatch::kInvalidChars,
+ ASCIIToUTF16(" "), &params_.selection_text);
AutocompleteMatch match;
AutocompleteClassifierFactory::GetForProfile(profile_)->Classify(

Powered by Google App Engine
This is Rietveld 408576698