DescriptionProperly delete the unused policy in password_manager_handler_unittest.cc
ui::SelectFilePolicy* passed to the SelectFileDialog creation methods are
assumed to be owned by the callee (they should ultimately end up in
SelectFileDialog::select_file_policy_, which is a unique_ptr). However,
the test factory in password_manager_handler_unittest.cc ignores the policy
it gets without deleting it. This CL deletes the ignored policy and removes
the leak annotations.
BUG=341477
Committed: https://crrev.com/fcbfda57b74a524deb20aa9a2124ce75470eb39f
Cr-Commit-Position: refs/heads/master@{#388458}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 14 (7 generated)
|