Description[GCM] Only allow the senders that the application is currently registered for
Only allow the senders that the application is currently registered for to send messages to it.
* GCMProfileService adds a check that the app is currently registered for the sender_id of the sender that sent the message
* IncomingMessage is extended to add sender_id
* GCMClientImpl adds the sender_id to the incoming message in the handling code.
* Adding a test verifying that messages are not delivered when not registered for senders
* fixing the GCM Profile Service tests that were previously not registering for senders before delivering messages
* Also: moving the DCHECKS in the GCMClientImpl::HandleIncomingMessage higher up to run them as soon as the checks values are available.
BUG=344665
Patch Set 1 #Patch Set 2 : Rebasing #
Messages
Total messages: 4 (0 generated)
|