Bug 1277854 - Post: add comment explaining local loading r=sebastian

MozReview-Commit-ID: J8eJrzkExeX

--HG--
extra : rebase_source : a9ccb5ca9778eb24bdf7bb22a7966284d7cebe2e
This commit is contained in:
Andrzej Hunt 2016-06-03 10:51:18 -07:00
parent 9de231d999
commit 175bca873e

View File

@ -306,8 +306,10 @@ public class Favicons {
}
// No joy using in-memory resources. Go to background thread and ask the database.
// Note: this is a near duplicate of loadUncachedFavicon, however loadUncachedFavicon
// can download favicons, whereas we want to restrict ourselves to the cache.
final LoadFaviconTask task =
new LoadFaviconTask(context, pageURL, targetURL, 0, callback, targetSize, true);
new LoadFaviconTask(context, pageURL, targetURL, 0, callback, targetSize, /* onlyFromLocal: */ true);
final int taskId = task.getId();
synchronized (loadTasks) {
loadTasks.put(taskId, task);