Chromium Code Reviews| 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..b52228d62e2d637349c5946c0915e81d44eb0d4b 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( |
|
Peter Kasting
2015/05/12 21:52:02
Nit: Space after =
|
| + 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. |