Fix crash in GCM if multiple errors reported
In subtle cases like state CONNECTING being entered via MCSClient::ResetStateAndBuildLoginRequest(), it is possible that the error callback gets triggered twice. With OnceCallback() being adopted recently in https://chromium-review.googlesource.com/c/chromium/src/+/1939891, this leads to a crash, and surfaced by flakiness in sync integration tests. Bug: 1039598 Change-Id: Iad23dfe81e07f11939a6640fb792a7ae1386c397 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1991434 Commit-Queue: Mikel Astiz <mastiz@chromium.org> Auto-Submit: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Dmitry Titov <dimich@chromium.org> Cr-Commit-Position: refs/heads/master@{#729799}
Showing
Please register or sign in to comment