DescriptionOnly 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.
This CL obsoletes https://codereview.chromium.org/185933003/
BUG=344665
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255483
Patch Set 1 #
Total comments: 8
Patch Set 2 : Updates based on code reviews #
Total comments: 1
Patch Set 3 : Moving the comment up #
Messages
Total messages: 26 (0 generated)
|