WebUI cleanup: Move getUrlForCss() from util.js to icon.js.
This was residing in util.js and was used by icon.js (3 calls) and ntp4/new_tab.js (1 call). Given that this is icon related, moving to icon.js and updating ntp4/ accordingly. Rationale: Generic "util" files are generally an anti-pattern, and often end up as a bag of unrelated functionality. Given that icon.js already exists and holds icon-related functionality, moving getUrlForCss() over there makes sense. Bug: None Change-Id: I586b2653ba09d6d144f1d99aa9ab331f96095726 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1706807Reviewed-by:Dan Beam <dbeam@chromium.org> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org> Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/master@{#678531}
Showing
Please register or sign in to comment