Chromium Code Reviews| 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..eb18fadf3bd448b9d842f927b542c01d08067325 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. |
|
Dan Beam
2012/12/14 18:28:13
* @param {Object=}
pedro (no code reviews)
2012/12/14 18:54:10
Done.
|
| * @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; |
| } |