Commit cd14ae50 authored by newt@chromium.org's avatar newt@chromium.org

[Android] Fix "remove" and "remove all" usage on NTP.

Use "Remove all" for the recently closed tabs list, and "Remove" for
all other lists.

BUG=163944

Review URL: https://chromiumcodereview.appspot.com/11416322

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171050 0039d316-1c4b-4281-b951-d872f2087c98
parent 7000bbe2
......@@ -11470,7 +11470,10 @@ experiment id: "<ph name="EXPERIMENT_ID">$5<ex>ar1</ex></ph>"
<message name="IDS_NEW_TAB_CONTEXT_MENU_OPEN_IN_INCOGNITO_TAB" desc="Context menu description for loading a link in an incognito tab">
Open in incognito tab
</message>
<message name="IDS_NEW_TAB_CONTEXT_MENU_REMOVE" desc="Context menu description for removing all recently closed items">
<message name="IDS_NEW_TAB_CONTEXT_MENU_REMOVE" desc="Context menu description for removing the selected item">
Remove
</message>
<message name="IDS_NEW_TAB_CONTEXT_MENU_REMOVE_ALL" desc="Context menu description for removing all items from a list">
Remove all
</message>
<message name="IDS_NEW_TAB_CONTEXT_MENU_EDIT_BOOKMARK" desc="Context menu description for editing the selected bookmark">
......
......@@ -2462,7 +2462,7 @@ cr.define('ntp', function() {
],
[
ContextMenuItemIds.RECENTLY_CLOSED_REMOVE,
templateData.elementremove
templateData.removeall
]
];
} else if (section == SectionType.FOREIGN_SESSION_HEADER) {
......
......@@ -81,6 +81,8 @@ void NTPResourceCache::CreateNewTabHTML() {
IDS_NEW_TAB_CONTEXT_MENU_OPEN_IN_INCOGNITO_TAB));
localized_strings.SetString("elementremove",
l10n_util::GetStringUTF16(IDS_NEW_TAB_CONTEXT_MENU_REMOVE));
localized_strings.SetString("removeall",
l10n_util::GetStringUTF16(IDS_NEW_TAB_CONTEXT_MENU_REMOVE_ALL));
localized_strings.SetString("bookmarkedit",
l10n_util::GetStringUTF16(IDS_NEW_TAB_CONTEXT_MENU_EDIT_BOOKMARK));
localized_strings.SetString("bookmarkdelete",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment