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

Unified Diff: chrome/browser/resources/ntp_search/apps_page.js

Issue 11566026: NTP5: Apps regression fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NTP5: Apps regression fix Created 8 years 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/ntp_search/most_visited_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp_search/apps_page.js
diff --git a/chrome/browser/resources/ntp_search/apps_page.js b/chrome/browser/resources/ntp_search/apps_page.js
index 21c40213361bd2f7a32474af1c2894a4a18237ba..1e7d1d5b591a826c3e083df5e878d2b26671d5d6 100644
--- a/chrome/browser/resources/ntp_search/apps_page.js
+++ b/chrome/browser/resources/ntp_search/apps_page.js
@@ -185,14 +185,17 @@ cr.define('ntp', function() {
/**
* Creates a new App object.
+ * @param {Object=} opt_data The data representing the app.
* @constructor
* @extends {HTMLDivElement}
*/
- function App(data) {
+ function App(opt_data) {
var el = cr.doc.createElement('div');
el.__proto__ = App.prototype;
el.initialize_();
- el.data = data;
+
+ if (opt_data)
+ el.data = opt_data;
return el;
}
@@ -591,7 +594,7 @@ cr.define('ntp', function() {
// The start margin of a cell (left or right according to text direction).
cellMarginStart: 20,
// The maximum number of Tiles to be displayed.
- maxTileCount: 20,
+ maxTileCount: 512,
// Whether the TilePage content will be scrollable.
scrollable: true,
},
« no previous file with comments | « no previous file | chrome/browser/resources/ntp_search/most_visited_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698