| Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
| diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
| index dcb6fd8292bb44b5bae0211554b50bd5ec1c3a21..9fac7620e161b9a43e4d180591304d6ad4d2029a 100644
|
| --- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
| +++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
| @@ -264,12 +264,6 @@ WindowOpenDisposition ForceNewTabDispositionFromEventFlags(
|
| return disposition == CURRENT_TAB ? NEW_FOREGROUND_TAB : disposition;
|
| }
|
|
|
| -// Helper function to escape "&" as "&&".
|
| -void EscapeAmpersands(base::string16* text) {
|
| - base::ReplaceChars(*text, base::ASCIIToUTF16("&"), base::ASCIIToUTF16("&&"),
|
| - text);
|
| -}
|
| -
|
| // Returns the preference of the profile represented by the |context|.
|
| PrefService* GetPrefs(content::BrowserContext* context) {
|
| return user_prefs::UserPrefs::Get(context);
|
| @@ -1745,6 +1739,11 @@ base::string16 RenderViewContextMenu::PrintableSelectionText() {
|
| gfx::WORD_BREAK);
|
| }
|
|
|
| +void RenderViewContextMenu::EscapeAmpersands(base::string16* text) {
|
| + base::ReplaceChars(*text, base::ASCIIToUTF16("&"), base::ASCIIToUTF16("&&"),
|
| + text);
|
| +}
|
| +
|
| // Controller functions --------------------------------------------------------
|
|
|
| void RenderViewContextMenu::CopyImageAt(int x, int y) {
|
|
|