DescriptionPush API: Remove AddAppHandlerIfNecessary to prevent DCHECK
Previously we would try to add the app handler twice for the first
registration - once in AddAppHandlerIfNecessary called by RegisterFrom*,
then again in IncreasePushRegistrationCount called by RegisterEnd.
Adding the app handler a second time causes GCMDriver to DCHECK.
It's ok to just add it in IncreasePushRegistrationCount (it was never
actually necessary to have a GCMAppHandler to register).
BUG=436453
Committed: https://crrev.com/d20f0147a03e5485ea95d25123dd8050fd2d0e2b
Cr-Commit-Position: refs/heads/master@{#310523}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|