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 ed85888419c8796d34acedf1fc8f754c03561c40..f519aa054fff89bbd508eb7713b21d8efde0aa88 100644 |
--- a/chrome/browser/tab_contents/render_view_context_menu.cc |
+++ b/chrome/browser/tab_contents/render_view_context_menu.cc |
@@ -658,6 +658,14 @@ void RenderViewContextMenu::AppendPlatformAppItems() { |
DCHECK(platform_app); |
DCHECK(platform_app->is_platform_app()); |
+ bool has_selection = !params_.selection_text.empty(); |
+ |
+ // Add undo/redo, cut/copy/paste etc for text fields |
+ if (params_.is_editable) |
+ AppendEditableItems(); |
+ else if (has_selection) |
+ AppendCopyItem(); |
+ |
int index = 0; |
AppendExtensionItems(platform_app->id(), &index); |