Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1966)

Unified Diff: Source/modules/push_messaging/PushEvent.cpp

Issue 1311853002: Update PushEvent and PushMessageData to match the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/push_messaging/PushEvent.h ('k') | Source/modules/push_messaging/PushEventInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushEvent.cpp
diff --git a/Source/modules/push_messaging/PushEvent.cpp b/Source/modules/push_messaging/PushEvent.cpp
index 11df94ba0da02412b49e4faf89df6fb212b7ed3d..ac061a8c15d90223515a1e188ac4ed39eaf7294b 100644
--- a/Source/modules/push_messaging/PushEvent.cpp
+++ b/Source/modules/push_messaging/PushEvent.cpp
@@ -5,6 +5,8 @@
#include "config.h"
#include "modules/push_messaging/PushEvent.h"
+#include "modules/push_messaging/PushEventInit.h"
+
namespace blink {
PushEvent::PushEvent()
@@ -21,7 +23,7 @@ PushEvent::PushEvent(const AtomicString& type, const PushEventInit& initializer)
: ExtendableEvent(type, initializer)
{
if (initializer.hasData())
- m_data = initializer.data();
+ m_data = PushMessageData::create(initializer.data());
}
PushEvent::~PushEvent()
« no previous file with comments | « Source/modules/push_messaging/PushEvent.h ('k') | Source/modules/push_messaging/PushEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698