Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / resources / local_ntp / most_visited_title.js
blob75be33b791df6486dd5821cdeee511e51282f551
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 /**
7  * @fileoverview Rendering for iframed most visited titles.
8  */
10 window.addEventListener('DOMContentLoaded', function() {
11   'use strict';
13   fillMostVisited(window.location, function(params, data) {
14     document.body.appendChild(
15         createMostVisitedLink(
16             params, data.url, data.title, data.title, data.direction,
17             data.provider));
18   });
19 });
21 window.addEventListener('load', function() {
22   chrome.embeddedSearch.newTabPage.logEvent(
23       NTP_LOGGING_EVENT_TYPE.NTP_TILE_LOADED);
24 });