diff options
Diffstat (limited to 'chrome/browser/resources/ntp/most_visited.js')
-rw-r--r-- | chrome/browser/resources/ntp/most_visited.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/chrome/browser/resources/ntp/most_visited.js b/chrome/browser/resources/ntp/most_visited.js index 72557ac..98f3317 100644 --- a/chrome/browser/resources/ntp/most_visited.js +++ b/chrome/browser/resources/ntp/most_visited.js @@ -41,10 +41,9 @@ var MostVisited = (function() { return Array.prototype.indexOf.call(nodes, el); } - function MostVisited(el, miniview, menu, useSmallGrid, visible) { + function MostVisited(el, miniview, useSmallGrid, visible) { this.element = el; this.miniview = miniview; - this.menu = menu; this.useSmallGrid_ = useSmallGrid; this.visible_ = visible; @@ -537,7 +536,6 @@ var MostVisited = (function() { this.data_ = data; this.updateMostVisited_(); this.updateMiniview_(); - this.updateMenu_(); }, updateMostVisited_: function() { @@ -611,19 +609,6 @@ var MostVisited = (function() { updateMiniviewClipping(this.miniview); }, - updateMenu_: function() { - clearClosedMenu(this.menu); - var data = this.data.slice(0, MAX_MINIVIEW_ITEMS); - for (var i = 0, item; item = data[i]; i++) { - if (!item.filler) { - addClosedMenuEntry( - this.menu, item.url, item.title, 'chrome://favicon/' + item.url); - } - } - addClosedMenuFooter( - this.menu, 'most-visited', MINIMIZED_THUMB, Section.THUMB); - }, - handleClick_: function(e) { var target = e.target; if (target.classList.contains('pin')) { |