screen orientation: Use ScriptPromise::RejectWithDOMException().
No functional changes; simplify the code by using the function above rather than manually creating a ScriptPromiseResolver, a ScriptPromise and then passing a DOMException to the ScriptPromise. Change-Id: I65a266dfd95f7d03b5b06cd6ca4fdd85aff67df3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1878069 Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Commit-Queue: Mounir Lamouri <mlamouri@chromium.org> Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Cr-Commit-Position: refs/heads/master@{#710033}
Showing
Please register or sign in to comment