Convert the Action Recorder Extension code to use async functions.
Chrome extension API methods are asynchronous and use callbacks. Much of the Action Recorder Extension background script wrap Chrome Extension API methods inside functions that return promises. Prior to this change, the background script handles sequential asynchronous calls using promise chains. Promise chains are cumbersome to write and difficult to debug. This change replaces promise chains with async functions and sequential await calls. Bug: 855284 Change-Id: Ic73608d9e6a207505f2d21a8a6005ce7418344a4 Reviewed-on: https://chromium-review.googlesource.com/1179312 Commit-Queue: Yiming Zhou <uwyiming@google.com> Reviewed-by:Jared Saul <jsaul@google.com> Cr-Commit-Position: refs/heads/master@{#585315}
Showing
This diff is collapsed.
Please register or sign in to comment