Replace SyntheticForm::document with origin
SyntheticForm is an abstraction of a collection of form input elements for the purpose of creating PasswordForm objects based on DOM tree. It currently stores a reference to the web document, only to derive the form's origin from it later. This CL drops the reference to the web document and replaces it with the computed origin. This way, SyntheticForm does not keep an unnecessary amount of data alive. It does introduce one GURL copy, but that will be addressed in a separate CL by making GetPasswordForm consume a SyntheticForm instead of looking at its const reference. Bug: 833838 Change-Id: I33011146289b60bb50898f70f8001af6668a4203 Reviewed-on: https://chromium-review.googlesource.com/1014130 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by:Vadym Doroshenko <dvadym@chromium.org> Cr-Commit-Position: refs/heads/master@{#551423}
Showing
Please register or sign in to comment