[PwdCheckAndroid] Add logic to create and destroy PasswordCheckBridge
The PasswordCheckBridge needs to signal its C++ counterpart when it's no longer needed in order to free up memory. Since the C++ bridge gets destructed, we need to destroy the entire PasswordCheck component, so that we don't end up with a partially initialized object. The object responsible for the tear-down is the last object to need the component. Possible cases are: MainSettings > PasswordSettings > PasswordCheck -> MainSettings should call destroy PasswordSettings > PasswordCheck -> PasswordSettings should call destroy MainSettings > SafetyCheck > PasswordCheck -> MainSettings should call destroy PasswordCheck (launched from the leak dialog) -> PasswordCheck should call destroy Bug:1102025, 1101256 Change-Id: I6706ab489049da2192ccb8c03632cc5a7fe38609 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2297504 Commit-Queue: Ioana Pandele <ioanap@chromium.org> Reviewed-by:Boris Sazonov <bsazonov@chromium.org> Reviewed-by:
Natalie Chouinard <chouinard@chromium.org> Reviewed-by:
Friedrich [CET] <fhorschig@chromium.org> Cr-Commit-Position: refs/heads/master@{#792276}
Showing
This diff is collapsed.
Please register or sign in to comment