Skip to content

Commit

Permalink
[GCM] Incoming GCM message without type should be treated as data mes…
Browse files Browse the repository at this point in the history
…sage

BUG=353363
TEST=Manual test by following repro steps
R=zea@chromium.org

Review URL: https://codereview.chromium.org/200763009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257546 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jianli@chromium.org committed Mar 18, 2014
1 parent f08554f commit 983a9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google_apis/gcm/gcm_client_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ void GCMClientImpl::HandleIncomingMessage(const gcm::MCSMessage& message) {
message_data[key] = data_message_stanza.app_data(i).value();
}

MessageType message_type = UNKNOWN;
MessageType message_type = DATA_MESSAGE;
MessageData::iterator iter = message_data.find(kMessageTypeKey);
if (iter != message_data.end()) {
message_type = DecodeMessageType(iter->second);
Expand Down

0 comments on commit 983a9df

Please sign in to comment.