| Index: content/browser/devtools/protocol/service_worker_handler.cc
|
| diff --git a/content/browser/devtools/protocol/service_worker_handler.cc b/content/browser/devtools/protocol/service_worker_handler.cc
|
| index a84091c276b18fa038c9aa397498bdc47cd78caa..169cc8327d37f7e9a8e5dbbe8c5a07075cfcb1e5 100644
|
| --- a/content/browser/devtools/protocol/service_worker_handler.cc
|
| +++ b/content/browser/devtools/protocol/service_worker_handler.cc
|
| @@ -23,6 +23,7 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/storage_partition.h"
|
| #include "content/public/browser/web_contents.h"
|
| +#include "content/public/common/push_event_payload.h"
|
| #include "content/public/common/push_messaging_status.h"
|
| #include "url/gurl.h"
|
|
|
| @@ -440,9 +441,12 @@ Response ServiceWorkerHandler::DeliverPushMessage(
|
| int64_t id = 0;
|
| if (!base::StringToInt64(registration_id, &id))
|
| return CreateInvalidVersionIdErrorResponse();
|
| + PushEventPayload payload;
|
| + if (data.size() > 0)
|
| + payload.setData(data);
|
| BrowserContext::DeliverPushMessage(
|
| render_frame_host_->GetProcess()->GetBrowserContext(), GURL(origin), id,
|
| - data, base::Bind(&PushDeliveryNoOp));
|
| + payload, base::Bind(&PushDeliveryNoOp));
|
| return Response::OK();
|
| }
|
|
|
|
|