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

Unified Diff: chrome/browser/resources/ntp_search/most_visited_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/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..e1004e8e688d97f19efde528d89c2be89a6b4483 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.
* @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;
}

Powered by Google App Engine
This is Rietveld 408576698