Simplify MapDataParamToSrc by eliminating FindStringInNames
This CL replaces both PluginParameters::FindStringInNames and the MapDataParamToSrc function in html_object_element.cc with a dedicated PluginParameters::FindStringInNames method, based on feedback from Frédéric and Mason in <https://crrev.com/c/2113394>. Like the old version, the code proposed here only adds a “src” param when there’s a “data” param but no “src” param, doing nothing if both “data” and “src” parameters exist (regardless of mutual order). Change-Id: I143ea81c5711c6f20cb5e1f6e791bf446ff33b02 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2121937 Commit-Queue: Delan Azabani <dazabani@igalia.com> Reviewed-by:Frédéric Wang <fwang@igalia.com> Reviewed-by:
Mason Freed <masonfreed@chromium.org> Cr-Commit-Position: refs/heads/master@{#755284}
Showing
Please register or sign in to comment