Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash on request retry in KidsChromeManagementClient
Response request is moved out of request structure during creation of SimpleURLLoader. If the request is retried later, which happens in case of HTTP_UNAUTHORIZED error, nullptr is dereferenced in to set header. This fix recrates response request if it was moved out. Landing it fast to verify that the crashes are fixed on ToT. (cherry picked from commit 160b4bf) Bug: 1192222 Test: Manually Change-Id: I736e8332673e1796f8c42255a45d2e7ab9d48334 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2818943 Reviewed-by: Dan S <danan@chromium.org> Commit-Queue: Aga Wronska <agawronska@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#871192} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2824169 Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Aga Wronska <agawronska@chromium.org> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/4472@{#45} Cr-Branched-From: 3d60439-refs/heads/master@{#870763}
- Loading branch information