Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't call GURL::spec() if the instance isn't valid.
This code path trips NOTREACHED in GURL::spec(). This fix preserves the current behavior if NOTREACHED is a no-op. (cherry picked from commit ffebb29) Bug: 1451357 Change-Id: If50500efe814da93be4fa62f668d2f7a2bb1404f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4756089 Commit-Queue: John Lee <johntlee@chromium.org> Reviewed-by: John Lee <johntlee@chromium.org> Auto-Submit: David Bertoni <dbertoni@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1181142} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4814297 Auto-Submit: Daniel Yip <danielyip@google.com> Owners-Override: Daniel Yip <danielyip@google.com> Commit-Queue: Srinivas Sista <srinivassista@chromium.org> Reviewed-by: Srinivas Sista <srinivassista@chromium.org> Cr-Commit-Position: refs/branch-heads/5845@{#1617} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information