commit | 5ed0e12d08834914062752a7508658e121de214f | [log] [tgz] |
---|---|---|
author | vabr <vabr@chromium.org> | Mon Mar 20 20:23:30 2017 |
committer | Commit bot <commit-bot@chromium.org> | Mon Mar 20 20:23:30 2017 |
tree | 8de175608d0398b701e3305ff9e33fab5c178427 | |
parent | 5ee95709dd07c47f2a794eb1cf14762274b678b9 [diff] |
Add FormFetcher::RemoveConsumer This allows to detach a consumer from a FormFetcher, the opposite of AddConsumer. It will be needed for two use-cases which will come in future CLs: (1) When multiple PasswordFormManagers (PFM) will share one FormFetcher, which will thus need to outlive the PFMs. Keeping dangling Consumers would result in use after free. (2) When implementing PasswordFormManager::GrabFetcher the PFM will need to stop listening to the old FormFetcher. More details in https://docs.google.com/document/d/12CH_SV1gIJKaEIGTs7gWBiXrCMlBa3o32OyC2LRtPAo/edit#heading=h.jz2q52kebs7k BUG=621355 Review-Url: https://codereview.chromium.org/2760653002 Cr-Commit-Position: refs/heads/master@{#458166}