Chromium Code Reviews
DescriptionGCM: Fix for null Sender ID on Android
ChromeGcmListenerService was reading the sender ID from the
wrong place (possibly because GCM used to include the
sender ID both as a method parameter and in the bundle,
then later stopped including it in the Bundle). This patch
fixes that.
The only real consequence of a missing sender ID was that
if PushMessagingServiceImpl::DeliverMessageCallback decided
to unsubscribe the subscription due to an error,
PushMessagingServiceImpl::Unsubscribe would hit the
sender_id.empty() code path and fail to unsubscribe from
GCM (but messages would already have stopped being
delivered).
Even that consequence will become irrelevant once we switch
to InstanceID, which no longer requires sender ID in order
to unsubscribe.
BUG=599434
Committed: https://crrev.com/598e5bd98f9199a001cfdaa37842e40564538bed
Cr-Commit-Position: refs/heads/master@{#384943}
Patch Set 1 #Patch Set 2 : Add logging, @Nullable and comment #Patch Set 3 : Fix ChromeGcmListenerService instead of adding null check #Patch Set 4 : Remove @Nullable #
Messages
Total messages: 22 (11 generated)
|
|||||||||||||||||||||||||||||||||||||