Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid hard-crash in password bubble.
It was evidently possible for the switch statement to fall through a NOTREACHED() and return a null pointer in some cases, in DCHECK we would be notified but in non-DCHECK it just crashes the browser. It is correct to detect the bad state in DCHECK mode but also we need to not hard-crash if we do not create a dialog. This is a spot fix for a larger issue and I'll be handing it off to the dialog's owner for further triage. (cherry picked from commit 2321589) Bug: 1305276 Change-Id: Ic19d680943a1dabc2bae6496c25a2ed381b3d950 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3522805 Commit-Queue: Dana Fried <dfried@chromium.org> Auto-Submit: Dana Fried <dfried@chromium.org> Reviewed-by: Mohamed Amir Yosef <mamir@chromium.org> Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#980812} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3533283 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/4896@{#641} Cr-Branched-From: 1f63ff4-refs/heads/main@{#972766}
- Loading branch information