| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 Behavior common to Site Settings classes. | 6 * @fileoverview Behavior common to Site Settings classes. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 /** @polymerBehavior */ | 9 /** @polymerBehavior */ |
| 10 var SiteSettingsBehaviorImpl = { | 10 var SiteSettingsBehaviorImpl = { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 }, | 252 }, |
| 253 | 253 |
| 254 /** | 254 /** |
| 255 * Returns the icon to use for a given site. | 255 * Returns the icon to use for a given site. |
| 256 * @param {SiteException} site The url of the site to fetch the icon for. | 256 * @param {SiteException} site The url of the site to fetch the icon for. |
| 257 * @return {string} The background-image style with the favicon. | 257 * @return {string} The background-image style with the favicon. |
| 258 * @private | 258 * @private |
| 259 */ | 259 */ |
| 260 computeSiteIcon: function(site) { | 260 computeSiteIcon: function(site) { |
| 261 var url = this.ensureUrlHasScheme(site.originForDisplay); | 261 var url = this.ensureUrlHasScheme(site.originForDisplay); |
| 262 return 'background-image: ' + getFaviconImageSet(url); | 262 return 'background-image: ' + cr.icon.getFaviconImageSet(url); |
| 263 }, | 263 }, |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 /** @polymerBehavior */ | 266 /** @polymerBehavior */ |
| 267 var SiteSettingsBehavior = [SiteSettingsBehaviorImpl]; | 267 var SiteSettingsBehavior = [SiteSettingsBehaviorImpl]; |
| OLD | NEW |