summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/local_ntp/most_visited_title.js
blob: 5772d9809dfaf4adafd71e6534c6c813a3882567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.


/**
 * @fileoverview Rendering for iframed most visited titles.
 */

window.addEventListener('DOMContentLoaded', function() {
  'use strict';

  fillMostVisited(window.location, function(params, data) {
    document.body.appendChild(
        createMostVisitedLink(
            params, data.url, data.title, data.title, data.ping,
            data.provider));
  });
});