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

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

Issue 11566026: NTP5: Apps regression fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improving code 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
Index: chrome/browser/resources/ntp_search/thumbnail_page.js
diff --git a/chrome/browser/resources/ntp_search/thumbnail_page.js b/chrome/browser/resources/ntp_search/thumbnail_page.js
index f6274fcf1a7607f4fc5bfea40c3e726b1ddb4693..db376d8bd9b6e7aaaea6f69b429ffd271c7dcd6a 100644
--- a/chrome/browser/resources/ntp_search/thumbnail_page.js
+++ b/chrome/browser/resources/ntp_search/thumbnail_page.js
@@ -10,15 +10,19 @@ cr.define('ntp', function() {
/**
* Creates a new Thumbnail object for tiling.
+ * @param {Object=} opt_data The data representing the thumbnail.
* @constructor
* @extends {Tile}
* @extends {HTMLAnchorElement}
*/
- function Thumbnail() {
+ function Thumbnail(opt_data) {
var el = cr.doc.createElement('a');
el.__proto__ = Thumbnail.prototype;
el.initialize();
+ if (opt_data)
+ el.data = opt_data;
+
return el;
}

Powered by Google App Engine
This is Rietveld 408576698