Promises: Implement Promise<> handle with Then and Catch

Implements Then and Catch on top of AbstractPromise as well as
ManualPromiseResolver<> which is needed for testing at this
stage (PostTask doesn't yet return a promise). It's also
necessary for promises to interface with old style callback
based libraries which are extremly common in Chromium.


Bug: 906125
Change-Id: Id7206698f37c59cfc201f3970cbf66a2ef89ee4e
Commit-Queue: Alex Clarke <>
Reviewed-by: Etienne Pierre-Doray <>
Reviewed-by: Fran├žois Doray <>
Cr-Commit-Position: refs/heads/master@{#661045}
13 files changed