Clean up string manipulation in url_util DoAddSchemeWithType.
Split off of https://chromium-review.googlesource.com/c/chromium/src/+/1901591 The motivation here is to make get rid of the memcpy and leaked ptr in DoAddSchemeWithType to make the code more readable. Also DCHECKs that schemes aren't locked when calling EnableNonStandardSchemesForAndroidWebView. Bug: 783819 Change-Id: I959d364fd0572a3c09c68ab75e48f46809f8dbc1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974759 Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#726584}
Showing
Please register or sign in to comment