Parameterize OnError method.

This change is required to support following part of the
spec. "Let acceptedMethods be supportedMethods with all
identifiers removed that the user agent does not accept.
If the length of acceptedMethods is zero, then reject
acceptPromise with a NotSupportedError."

BUG=627705

Review-Url: https://codereview.chromium.org/2145553002
Cr-Commit-Position: refs/heads/master@{#406227}
13 files changed