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

Unified Diff: content/child/push_messaging/push_provider.cc

Issue 1944863002: Push API: Fix stored sender ID being out of sync with registration ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ii7swdb
Patch Set: Add TODO Created 4 years, 7 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
Index: content/child/push_messaging/push_provider.cc
diff --git a/content/child/push_messaging/push_provider.cc b/content/child/push_messaging/push_provider.cc
index 660e59b76507b6ae6a8d5956c35c6b97c269e920..59992b76dea44cf3b9138fc11ce8cdbd4ca6d21f 100644
--- a/content/child/push_messaging/push_provider.cc
+++ b/content/child/push_messaging/push_provider.cc
@@ -14,6 +14,7 @@
#include "content/child/service_worker/web_service_worker_registration_impl.h"
#include "content/child/thread_safe_sender.h"
#include "content/common/push_messaging_messages.h"
+#include "content/public/common/child_process_host.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/modules/push_messaging/WebPushSubscription.h"
#include "third_party/WebKit/public/platform/modules/push_messaging/WebPushSubscriptionOptions.h"
@@ -83,8 +84,9 @@ void PushProvider::subscribe(
// Just treat the server key as a string of bytes and pass it to the push
// service.
content_options.sender_info = options.applicationServerKey.latin1();
- thread_safe_sender_->Send(new PushMessagingHostMsg_SubscribeFromWorker(
- request_id, service_worker_registration_id, content_options));
+ thread_safe_sender_->Send(new PushMessagingHostMsg_Subscribe(
+ ChildProcessHost::kInvalidUniqueID, request_id,
+ service_worker_registration_id, content_options));
}
void PushProvider::unsubscribe(
« no previous file with comments | « content/browser/push_messaging/push_messaging_message_filter.cc ('k') | content/common/push_messaging_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698