| Index: chrome/browser/services/gcm/gcm_profile_service.cc
|
| diff --git a/chrome/browser/services/gcm/gcm_profile_service.cc b/chrome/browser/services/gcm/gcm_profile_service.cc
|
| index ec5e0950cc02ee42b535cd77b0027c1cc6fb15f9..a0a9a56ad2fe4e981faeb8f6b35001059d17f79e 100644
|
| --- a/chrome/browser/services/gcm/gcm_profile_service.cc
|
| +++ b/chrome/browser/services/gcm/gcm_profile_service.cc
|
| @@ -906,6 +906,12 @@ void GCMProfileService::MessageReceived(const std::string& app_id,
|
| if (username_.empty())
|
| return;
|
|
|
| + RegistrationInfoMap::iterator iter = registration_info_map_.find(app_id);
|
| + if (iter == registration_info_map_.end() ||
|
| + iter->second.sender_id != message.sender_id) {
|
| + return;
|
| + }
|
| +
|
| GetEventRouter(app_id)->OnMessage(app_id, message);
|
| }
|
|
|
|
|