[FIX] Change the fix flow objects from global unique pointers to local raw pointers.
BUG CAUSE: When the fix flow prompt is dismissed, we intend to cleanup the memory by calling delete this. However, chrome_autofill_client tries to call the destructor of the unique pointer pointing to the deleted object resulting in a crash. PROPOSED SOLUTION: Since the fix flow objects are responsible for maintaining their lifecycle. i.e. Delete themselves when the prompt is dismissed, we can change them to be local raw pointers. Bug: 929437 Change-Id: I539569dc32fbe6d0e4f535a57a2e2871e573a87c Reviewed-on: https://chromium-review.googlesource.com/c/1468582Reviewed-by:Tommy Martino <tmartino@chromium.org> Reviewed-by:
Fabio Tirelo <ftirelo@chromium.org> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Reviewed-by:
Jared Saul <jsaul@google.com> Commit-Queue: Siddharth Shah <siashah@chromium.org> Cr-Commit-Position: refs/heads/master@{#635353}
Showing
Please register or sign in to comment