Chromium Code Reviews| Index: chrome/browser/resources/ntp_search/most_visited_page.js |
| diff --git a/chrome/browser/resources/ntp_search/most_visited_page.js b/chrome/browser/resources/ntp_search/most_visited_page.js |
| index 19364203bd778b4413236db4f85dce5469fa0def..bc772a1bcf4af00d6622246b8c0a83f46edcbe1c 100644 |
| --- a/chrome/browser/resources/ntp_search/most_visited_page.js |
| +++ b/chrome/browser/resources/ntp_search/most_visited_page.js |
| @@ -10,15 +10,19 @@ cr.define('ntp', function() { |
| /** |
| * Creates a new Most Visited object for tiling. |
| + * @param {Object} opt_data The data representing the most visited page. |
|
Dan Beam
2012/12/14 18:28:13
@param {Object=}
pedro (no code reviews)
2012/12/14 18:54:10
Done.
|
| * @constructor |
| * @extends {Thumbnail} |
| * @extends {HTMLAnchorElement} |
| */ |
| - function MostVisited() { |
| + function MostVisited(opt_data) { |
| var el = cr.doc.createElement('a'); |
| el.__proto__ = MostVisited.prototype; |
| el.initialize(); |
| + if (opt_data) |
| + el.data = opt_data; |
| + |
| return el; |
| } |