DescriptionReturn same promise consistently when using navigator.getBattery()
Use ScriptPromiseProperty to return same battery manager promise
every time, even when it has already been resolved. This is in
line with the specification. It also simplifies the code logic a bit
since there is no need to keep an enum for the state of the battery
manager.
BUG=385025
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197048
Patch Set 1 #
Total comments: 6
Patch Set 2 : fix comments #
Total comments: 2
Patch Set 3 : rebase, make compile, fix comment #
Messages
Total messages: 10 (3 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||