This reverts commit dac0b60482.
fix https://github.com/brave/brave-browser/issues/45335
Revert reason: This code was added as a workaround for upstream's bug but
that fix below is arrived to our master.
https://chromium-review.googlesource.com/c/chromium/src/+/6438165