Change static_cast to To<> in ReadableStreamDefaultController
It is generally safer/preferred to use blink::To instead of static_cast to a derived class from a base class, as it has a security check that the object is actually of the derived class type. Hence, this CL changes the static_cast to use To<ReadableStreamDefaultReader> instead. Bug: 614302 Change-Id: I93d9fe8a833f833c3ba92e84dd02ed0ad3356e3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2577390Reviewed-by:Adam Rice <ricea@chromium.org> Commit-Queue: Nidhi Jaju <nidhijaju@google.com> Cr-Commit-Position: refs/heads/master@{#834595}
Showing
Please register or sign in to comment