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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 1244723003: [Mac] Update context menu dictionary lookup wording and placement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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/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) {

Powered by Google App Engine
This is Rietveld 408576698