OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview settings-startup-url-entry represents a UI component that | 6 * @fileoverview settings-startup-url-entry represents a UI component that |
7 * displayes a URL that is loaded during startup. It includes a menu that allows | 7 * displayes a URL that is loaded during startup. It includes a menu that allows |
8 * the user to edit/remove the entry. | 8 * the user to edit/remove the entry. |
9 */ | 9 */ |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 /** @type {!StartupPageInfo} */ | 24 /** @type {!StartupPageInfo} */ |
25 model: Object, | 25 model: Object, |
26 }, | 26 }, |
27 | 27 |
28 /** | 28 /** |
29 * @param {string} url Location of an image to get a set of icons for. | 29 * @param {string} url Location of an image to get a set of icons for. |
30 * @return {string} A set of icon URLs. | 30 * @return {string} A set of icon URLs. |
31 * @private | 31 * @private |
32 */ | 32 */ |
33 getIconSet_: function(url) { | 33 getIconSet_: function(url) { |
34 return cr.icon.getFaviconImageSet(url); | 34 return cr.icon.getFavicon(url); |
35 }, | 35 }, |
36 | 36 |
37 /** @private */ | 37 /** @private */ |
38 onRemoveTap_: function() { | 38 onRemoveTap_: function() { |
39 this.$$('iron-dropdown').close(); | 39 this.$$('iron-dropdown').close(); |
40 settings.StartupUrlsPageBrowserProxyImpl.getInstance().removeStartupPage( | 40 settings.StartupUrlsPageBrowserProxyImpl.getInstance().removeStartupPage( |
41 this.model.modelIndex); | 41 this.model.modelIndex); |
42 }, | 42 }, |
43 | 43 |
44 /** @private */ | 44 /** @private */ |
45 onEditTap_: function() { | 45 onEditTap_: function() { |
46 this.$$('iron-dropdown').close(); | 46 this.$$('iron-dropdown').close(); |
47 this.fire(settings.EDIT_STARTUP_URL_EVENT, this.model); | 47 this.fire(settings.EDIT_STARTUP_URL_EVENT, this.model); |
48 }, | 48 }, |
49 }); | 49 }); |
OLD | NEW |