DescriptionPush API: Fix stored sender ID being out of sync with registration ID
Until now we stored the sender ID into the Service Worker database
whenever an attempt was made at registering. This meant that a
successful subscribe followed by an unsuccessful subscribe with a
different sender ID would leave the SW database in an inconsistent
state: we'd be storing the old successful registration ID, but the new
unsuccessful sender ID!
This is mainly a problem when unsubscribing from GCM, which requires the
correct sender ID on Android.
This patch fixes that, so that henceforth whenever a registration ID is
stored, the sender ID is guaranteed to be the one used when subscribing.
Depends on https://codereview.chromium.org/1945753002
BUG=608831
Committed: https://crrev.com/8112686d4a56ef5200014a9ffa294529d071debc
Cr-Commit-Position: refs/heads/master@{#393041}
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 4
Patch Set 3 : Merge Subscribe IPCs #
Total comments: 4
Patch Set 4 : Add TODO #
Depends on Patchset: Messages
Total messages: 26 (10 generated)
|