Replace a few GetRawDataResource/GetStringUTF8 calls in c/b/ui/webui/
Specifically this CL affects the C++ backends of chrome://settings and chrome://terms replacing some call sites of GetRawDataResource() as well as GetStringUTF8(). The latter was somewhat misused, since it's not intended to be used to load entire file contents. GetRawDataResource assumes that underlying files are not compressed, whereas LoadDataResourceString automatically decompresses if necessary. This is one of many CLs, in preparation of compressing all HTML, JS, CSS, SVG files by default (meaning without requiring compress="gzip" to be specified). Bug: 1068407 Change-Id: Ie06dda1c3bd37e66b79aa06ca3ce40a1cf85dc3c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2151677 Commit-Queue: Esmael Elmoslimany <aee@chromium.org> Auto-Submit: dpapad <dpapad@chromium.org> Reviewed-by:Esmael Elmoslimany <aee@chromium.org> Cr-Commit-Position: refs/heads/master@{#759516}
Showing
Please register or sign in to comment