summaryrefslogtreecommitdiffstats
path: root/google_apis
diff options
context:
space:
mode:
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 00:13:22 +0000
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 00:13:22 +0000
commit983a9df895b96892d6ea66e8adb0a783775aac51 (patch)
treef425c20943dcb06676c4123e3adf7c7300d4e8fa /google_apis
parentf08554fec6bb9d0c630a5fb9e678797d9b2e59c2 (diff)
downloadchromium_src-983a9df895b96892d6ea66e8adb0a783775aac51.zip
chromium_src-983a9df895b96892d6ea66e8adb0a783775aac51.tar.gz
chromium_src-983a9df895b96892d6ea66e8adb0a783775aac51.tar.bz2
[GCM] Incoming GCM message without type should be treated as data message
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
Diffstat (limited to 'google_apis')
-rw-r--r--google_apis/gcm/gcm_client_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/google_apis/gcm/gcm_client_impl.cc b/google_apis/gcm/gcm_client_impl.cc
index 0c9d0fa..2303100 100644
--- a/google_apis/gcm/gcm_client_impl.cc
+++ b/google_apis/gcm/gcm_client_impl.cc
@@ -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);