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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushManager.cpp

Issue 1701313002: Partial implementation of subscription restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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: third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp b/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
index 0f5a2ffd66ddd641444c5580ef3b4c3273ccc98d..9b0fc3f2e5de5807d59ce1cea47a457f715bb042 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushManager.cpp
@@ -38,6 +38,8 @@ WebPushSubscriptionOptions toWebPushSubscriptionOptions(const PushSubscriptionOp
{
WebPushSubscriptionOptions webOptions;
webOptions.userVisibleOnly = options.userVisibleOnly();
+ if (options.hasAppServicePublicKey() && options.appServicePublicKey())
+ webOptions.applicationServerKey = WTF::String(static_cast<const char*>(options.appServicePublicKey()->data()));
Peter Beverloo 2016/02/17 16:15:36 This isn't safe because the |applicationServerKey|
harkness 2016/02/18 10:45:15 Done.
return webOptions;
}

Powered by Google App Engine
This is Rietveld 408576698