[Notifications] Use ScriptPromiseResolver directly in Mojo codepath
- Previously when displaying and getting notifications the promise resolver was always converted to callbacks, for the legacy IPC code which needed to store these callbacks in a map. - Mojo renders a callback map unnecessary, so this patch refactors the code to avoid the conversion when the Mojo pathway is taken. Bug: 796991 Change-Id: I216730c06fdb42a3c2c9fe21708252cb652e8b6b Reviewed-on: https://chromium-review.googlesource.com/1011422 Commit-Queue: Anita Woodruff <awdf@chromium.org> Reviewed-by:Peter Beverloo <peter@chromium.org> Cr-Commit-Position: refs/heads/master@{#551094}
Showing
Please register or sign in to comment