[CAP] Do not clear data in PAC::EnableExtraDataForTesting
PaintArtifactCompositor::EnableExtraDataForTesting had a bug where the
extra_data_for_testing_ data would be cleared without marking
PaintArtifactCompositor as needing an update. This only occurred when
there were multiple calls to PAC::EnableExtraDataForTesting. This patch
updates the function to do nothing if extra data for testing is
already enabled.
Bug: 909749
Change-Id: Ifcab15364ec882adfab0358cdb1d62984a653f61
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1618501
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Auto-Submit: Philip Rogers <pdr@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#661521}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5ebec7c53b2ea5685ddac816e0bbd657e8a1978b
2 files changed