diff options
Diffstat (limited to 'chrome/browser/resources/new_new_tab.html')
-rw-r--r-- | chrome/browser/resources/new_new_tab.html | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/resources/new_new_tab.html b/chrome/browser/resources/new_new_tab.html index bae7d2f..7897c44 100644 --- a/chrome/browser/resources/new_new_tab.html +++ b/chrome/browser/resources/new_new_tab.html @@ -710,10 +710,6 @@ html[dir='rtl'] #searches input { </head> <body onload="logEvent('body onload fired');" jsvalues=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> -<div id="l10n" style="display:none;"> - <span id="closedwindowsingle" jscontent="closedwindowsingle">1 Tab</span> - <span id="closedwindowmultiple" jscontent="closedwindowmultiple">% Tabs</span> -</div> <script> // We apply the size class here so that we don't trigger layout animations onload. handleWindowResize(); @@ -1185,6 +1181,8 @@ function renderRecentlyClosedTabs(entries) { function recentlyClosedWindowText(numTabs) { if (numTabs == 1) return localStrings.getString('closedwindowsingle'); + // TODO(arv): This should use localStrings.formatString but we need to update + // the grd file for that. return localStrings.getString('closedwindowmultiple').replace('%', numTabs); } @@ -1356,7 +1354,7 @@ function viewLog() { logEvent('end of second script block'); -localStrings = new LocalStrings($('l10n')); +localStrings = new LocalStrings(); // We've got all the JS we need, render any unprocessed data. renderFunctionsDefined = true; |