summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/suggestions_internals/suggestions_internals.js
blob: 7e51da04fdd3805e1d92b9ee5cc952e99e50e12e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2012 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.

/**
 * Javascript for suggestions_internals.html, served from
 * chrome://suggestions-internals/. This is used to debug suggestions ranking.
 * When loaded, the page will show the current set of suggestions, along with a
 * large set of information (e.g. all the signals that were taken into
 * consideration for deciding which pages were selected to be shown to the user)
 * that will aid in debugging and optimizing the algorithms.
 */
cr.define('suggestionsInternals', function() {
  'use strict';

  /**
   * Register our event handlers.
   */
  function initialize() {
    // TODO(macourteau): implement this.
  }

  return {
    initialize: initialize,
  };
});

document.addEventListener('DOMContentLoaded', suggestionsInternals.initialize);