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

Unified Diff: chrome/browser/ui/cocoa/history_menu_bridge.mm

Issue 1103293004: Use ICU plural syntax in more place (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: recently_closed.js restored per estade Created 5 years, 7 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/ui/cocoa/history_menu_bridge.mm
diff --git a/chrome/browser/ui/cocoa/history_menu_bridge.mm b/chrome/browser/ui/cocoa/history_menu_bridge.mm
index 560d64b763f69a7a1b0046e2b7da2cfce525b3d7..5eab264091f0060bf708f6858547389be9f4099a 100644
--- a/chrome/browser/ui/cocoa/history_menu_bridge.mm
+++ b/chrome/browser/ui/cocoa/history_menu_bridge.mm
@@ -185,14 +185,8 @@ void HistoryMenuBridge::TabRestoreServiceChanged(TabRestoreService* service) {
// Now that the number of tabs that has been added is known, set the title
// of the parent menu item.
- if (item->tabs.size() == 1) {
- item->title = l10n_util::GetStringUTF16(
- IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_SINGLE);
- } else {
- item->title =l10n_util::GetStringFUTF16(
- IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW_MULTIPLE,
- base::IntToString16(item->tabs.size()));
- }
+ item->title = l10n_util::GetPluralStringFUTF16(
+ IDS_NEW_TAB_RECENTLY_CLOSED_WINDOW, item->tabs.size());
// Sometimes it is possible for there to not be any subitems for a given
// window; if that is the case, do not add the entry to the main menu.

Powered by Google App Engine
This is Rietveld 408576698