| Index: content/browser/push_messaging/push_messaging_message_filter.cc
|
| diff --git a/content/browser/push_messaging/push_messaging_message_filter.cc b/content/browser/push_messaging/push_messaging_message_filter.cc
|
| index 44347dd1508350e510820a2e241a71d732bd5cc9..9820f4f151d95be74ca3f6e4ad5b6fc6a80158dc 100644
|
| --- a/content/browser/push_messaging/push_messaging_message_filter.cc
|
| +++ b/content/browser/push_messaging/push_messaging_message_filter.cc
|
| @@ -324,8 +324,10 @@ void PushMessagingMessageFilter::DidCheckForExistingRegistration(
|
| SendSubscriptionError(data, PUSH_REGISTRATION_STATUS_NO_SENDER_ID);
|
| return;
|
| }
|
| - // TODO(crbug.com/638924): Check that stored sender ID equals
|
| - // data.options.sender_info and throw an exception if they don't match.
|
| + if (fixed_sender_id != stored_sender_id) {
|
| + SendSubscriptionError(data, PUSH_REGISTRATION_STATUS_SENDER_ID_MISMATCH);
|
| + return;
|
| + }
|
| auto callback = base::Bind(
|
| &PushMessagingMessageFilter::DidGetEncryptionKeys,
|
| weak_factory_io_to_io_.GetWeakPtr(), data, push_registration_id);
|
|
|