Format print header/footer URLs using url_formatter::FormatUrl
This CL changes the print preview handler to set kSettingHeaderFooterURL using url_formatter::FormatUrl rather than extracting the GURL::spec() directly. In particular, this allows safe IDNs to be displayed as unicode rather than punycode in the header/footer (matching how they are displayed in the omnibox). Bug: 910344 Change-Id: Iabed0e1821df29e5c2a5b6fc9953fa6d8cb3e10d Reviewed-on: https://chromium-review.googlesource.com/c/1356235Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Christopher Thompson <cthomp@chromium.org> Cr-Commit-Position: refs/heads/master@{#612775}
Showing
Please register or sign in to comment