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

Unified Diff: chrome/browser/dom_ui/new_tab_ui.cc

Issue 155865: NNTP: Merge the recent activities into one list and show more items... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/new_tab_ui.cc
===================================================================
--- chrome/browser/dom_ui/new_tab_ui.cc (revision 21095)
+++ chrome/browser/dom_ui/new_tab_ui.cc (working copy)
@@ -1218,12 +1218,13 @@
const TabRestoreService::Entries& entries = service->entries();
ListValue list_value;
int added_count = 0;
+ const int max_count = NewTabUI::UseOldNewTabPage() ? 3 : 6;
// We filter the list of recently closed to only show 'interesting' entries,
// where an interesting entry is either a closed window or a closed tab
// whose selected navigation is not the new tab ui.
for (TabRestoreService::Entries::const_iterator it = entries.begin();
- it != entries.end() && added_count < 3; ++it) {
+ it != entries.end() && added_count < max_count; ++it) {
TabRestoreService::Entry* entry = *it;
DictionaryValue* value = new DictionaryValue();
if ((entry->type == TabRestoreService::TAB &&
« no previous file with comments | « no previous file | chrome/browser/resources/new_new_tab.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698