Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1546)

Unified Diff: ios/web/webui/resources/web_ui_favicons.js

Issue 2014743002: Update iOS WebUI History to use icon.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/app/resources/history/other_devices.js ('k') | ui/webui/resources/js/icon.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/resources/web_ui_favicons.js
diff --git a/ios/web/webui/resources/web_ui_favicons.js b/ios/web/webui/resources/web_ui_favicons.js
index a9309c507e5128a1f2f1b729d2798be4b9e82169..9223f23e56064735a523c6c7a4218a19e08084c6 100644
--- a/ios/web/webui/resources/web_ui_favicons.js
+++ b/ios/web/webui/resources/web_ui_favicons.js
@@ -28,7 +28,7 @@ window['chrome']['requestFavicon'] = function(el, imageSet) {
var faviconUrl = '';
for (var i = 0; i < cssUrls.length; ++i) {
var scaleFactorExp = /(\d)x$/;
- var scaleFactor = getSupportedScaleFactors()[0];
+ var scaleFactor = cr.icon.getSupportedScaleFactors()[0];
if (parseInt(scaleFactorExp.exec(cssUrls[i])[1], 10) === scaleFactor) {
var urlExp = /url\(\"(.+)\"\)/;
faviconUrl = urlExp.exec(cssUrls[i])[1];
« no previous file with comments | « ios/chrome/app/resources/history/other_devices.js ('k') | ui/webui/resources/js/icon.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698