URIComponent(downlCount));

  chrome.runtime.setUninstallURL(Utils.getDocLink("uninstalled") + "&" +
                                 search.join("&"));
}

// The uninstall URL contains the notification download count as a parameter,
// therefore we must wait for preferences to be loaded before generating the
// URL and we need to re-generate it each time the notification data changes.
if ("setUninstallURL" in chrome.runtime)
{
  Prefs.untilLoaded.then(setUninstallURL);
  Prefs.on("notificationdata", setUninstallURL);
}
